mIRC Homepage
Posted By: KewlioMZX Popup boxes and such - 11/08/03 12:18 AM
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?
Posted By: SladeKraven Re: Popup boxes and such - 11/08/03 12:28 AM
Do you mean something like:
Code:
menu * {
  Menu
  .Menu 1:commands here
  .Menu 2:commands here
  .Menu 3:commands here
}
Posted By: KewlioMZX Re: Popup boxes and such - 11/08/03 01:04 AM
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...
Posted By: Collective Re: Popup boxes and such - 11/08/03 01:05 AM
Perhaps you mean a dialog? These are windows with text boxes, list boxes, etc. (like the mIRC Options window) /help /dialog
Posted By: SladeKraven Re: Popup boxes and such - 11/08/03 01:28 AM
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
Posted By: KewlioMZX Re: Popup boxes and such - 11/08/03 02:16 AM
...OK, that Help text is confusingly long and confusing. Would someone care to show an example?
Posted By: SladeKraven Re: Popup boxes and such - 11/08/03 03:06 AM
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)
}
Posted By: MTech Re: Popup boxes and such - 11/08/03 04:56 AM
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...
Posted By: SladeKraven Re: Popup boxes and such - 11/08/03 04:58 AM
and what do you know now? wink
Posted By: MTech Re: Popup boxes and such - 11/08/03 04:58 AM
not too much but im working on it...getting into MDX now
Posted By: SladeKraven Re: Popup boxes and such - 11/08/03 04:59 AM
I see.. grin
Posted By: pheonix Re: Popup boxes and such - 11/08/03 05:02 AM
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
Posted By: SladeKraven Re: Popup boxes and such - 11/08/03 05:07 AM
Not sure if this is any use to you, but I stumbled on some /bread information.
/bread
Posted By: pheonix Re: Popup boxes and such - 11/08/03 07:15 AM
thanks so much grin,its no so hard after all :tongue:
Posted By: SladeKraven Re: Popup boxes and such - 11/08/03 07:32 AM
I wouldn't know. Never tried it. grin
You're welcome.
Posted By: KewlioMZX Re: Popup boxes and such - 12/08/03 01:28 AM
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?
Posted By: Collective Re: Popup boxes and such - 12/08/03 01:31 AM
Actually it was Slade who said custom windows smile
Posted By: SladeKraven Re: Popup boxes and such - 12/08/03 07:33 PM

/help Custom Windows

Everything you need to know.
© mIRC Discussion Forums