mIRC Home    About    Download    Register    News    Help

Print Thread
#41028 11/08/03 12:18 AM
K
KewlioMZX
KewlioMZX
K
Now, it's time to improve my current skills! Previously, I asked for help with my "Self-Mod" and "Auto Echo" modes. Well, I understand that it's possible to create new windows containing information and such. So, question part 1: How would I go about making such windows? Also, would it be possible to make them on top of all other mIRC screens?

This third part may be a little more advanced, but whatever; is it also possible to make it so that the information in these script-made windows would change when I switch between channel windows and such?

#41029 11/08/03 12:28 AM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Do you mean something like:
Code:
menu * {
  Menu
  .Menu 1:commands here
  .Menu 2:commands here
  .Menu 3:commands here
}

#41030 11/08/03 01:04 AM
K
KewlioMZX
KewlioMZX
K
No, that's a menu. I mean something like maybe a floating status box or something. I don't really know how to explain it...

#41031 11/08/03 01:05 AM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
Perhaps you mean a dialog? These are windows with text boxes, list boxes, etc. (like the mIRC Options window) /help /dialog

#41032 11/08/03 01:28 AM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
If you did mean dialog, try something like:
Code:
dialog Kewlio {
  title "KewlioMZX"
  size -1 -1 100 95
  option dbu
  box "",1,2 0 96 93
  button "&OK" 2, 21 40 60 20, ok
}

Also as Collective said
/help /dialog
in addition also try..
/help on dialog

On the other hand, you might of meant Custom Windows?
/help Custom Windows
Here is a tutorial on dialogs..
Dialog Tutorial

#41033 11/08/03 02:16 AM
K
KewlioMZX
KewlioMZX
K
...OK, that Help text is confusingly long and confusing. Would someone care to show an example?

#41034 11/08/03 03:06 AM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Code:
dialog Kewlio {  
title "KewlioMZX"  
size -1 -1 100 95  
option dbu  
button "&OK" 2, 21 40 60 20, ok
}

Was an example, I just didn't explain how to use it etc.
To open it type:
/dialog -dm Kewlio Kewlio.
title = The titlebar of the dialog.
size = the size of the dialog
option (from the help file) = The dbu option makes mIRC use dialog base units when creating the dialog.

In your dialog you can add menu's, list boxes, combo's, buttons, boxes, radio buttons using xywh.
The xy means the positioning. The w means the width and the h means the height.

That is the basics. Now how to make the button do certain things.
Adapt from this.
Code:
dialog Kewlio {
  title "KewlioMZX"
  size -1 -1 100 95
  option dbu
  edit "Type your message.",1,20 30 52 10
  button "Send" 2, 30 60 30 20, ok
}

on 1:DIALOG:kewlio:sclick:2: {
  msg $active $did(1)
}

#41035 11/08/03 04:56 AM
M
MTech
MTech
M
the best thing to do would to look at scripts on www.mircscripts.org {After it comes back online} thats how i learned what i know now...

#41036 11/08/03 04:58 AM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
and what do you know now? wink

#41037 11/08/03 04:58 AM
M
MTech
MTech
M
not too much but im working on it...getting into MDX now

#41038 11/08/03 04:59 AM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
I see.. grin

#41039 11/08/03 05:02 AM
P
pheonix
pheonix
P
i learnt nearly everything i know from ms.org, com objects,sockets,most identifiers,most aliases.
still lookin for decent explanations on /bread though frown

#41040 11/08/03 05:07 AM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Not sure if this is any use to you, but I stumbled on some /bread information.
/bread

#41041 11/08/03 07:15 AM
P
pheonix
pheonix
P
thanks so much grin,its no so hard after all :tongue:

#41042 11/08/03 07:32 AM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
I wouldn't know. Never tried it. grin
You're welcome.

#41043 12/08/03 01:28 AM
K
KewlioMZX
KewlioMZX
K
By the way SladeKraven, seems you posted just before I did; I was replying to Collective. Besides, I think that what I want is that other thing he said, custom windows I think he called it. How does that work?

#41044 12/08/03 01:31 AM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
Actually it was Slade who said custom windows smile

#41045 12/08/03 07:33 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534

/help Custom Windows

Everything you need to know.


Link Copied to Clipboard