mIRC Homepage
Posted By: demitrix dialogs - 11/07/03 05:02 AM
ok ive read around and tried osme source and i cant get anythign to work can some plz write a bare minimum script to open a dialog that has text, input field, and ok and cancel buttons
Posted By: Watchdog Re: dialogs - 11/07/03 05:30 AM
The best source for sample dialogue code is int he mIRC help file. It has a couple of snippets there. /help dialogs
Posted By: demitrix Re: dialogs - 11/07/03 05:36 AM
yeah ive gotten dialogs but how do i get then open ive tried making an alias that does the dialog command but i just get /dialog: invalid parameters (line 2, file.mrc) so..
Posted By: vexx0r Re: dialogs - 11/07/03 06:04 AM
Like they said, /help dialogs..... best way to go, but for all extensive purposes I threw together this little example for you.
Code:
 
dialog example {
  title "example"
  size -1 -1 60 40
  option dbu
  text "Text Label", 1, 4 2 25 8
  edit "", 2, 3 10 50 10
  button "Ok", 3, 3 21 17 12, ok
  button "Cancel", 4, 22 21 31 12
}

 


To run you would put this in remotes and type

/dialog -m example example

Note: This will not do anything because dialogs require further coding before the ok/cancel buttons know what to do besides close the dialog without takeing further action.

Though when making this very simple dialog i rememberd that this may not be what you were looking for, because there is and input box that you can use default in mIRC .

and is used like this:
$$?="your text here."
Againg i just threw that in because it may be what you want and is eaiser then creating your own dialog, if you need more help with basic dialogs type /help dialogs

Posted By: demitrix Re: dialogs - 11/07/03 06:06 AM
ok see i justed didnt get the /dialog -m example example before thank you much
Posted By: KingTomato Re: dialogs - 11/07/03 06:23 AM
might i suggest /help $input
much eaiser.
Posted By: vexx0r Re: dialogs - 11/07/03 06:26 AM
heh, i am not familiar with all one can do with mirc yet so i probably shouldnt be offering help anyway...
Posted By: demitrix Re: dialogs - 11/07/03 06:29 AM
i think in my situation a dialog is better as im actually making more of a options window, but another quesiton on /dialog -m example example wat is the first example for it seems to be able to set to anything
Posted By: KingTomato Re: dialogs - 11/07/03 06:32 AM
here is an editbox and okay with %input...

alias example {
; text on dialog
var %message = What is this for
; title of input dialog
var %title = Enter Answer Below
; text to be pre-entered in editbox when it opens (if any)
var %editbox = Example of $+($,input)
var %input = $input(%message, oyv, %title, %editbox)
}
Posted By: SladeKraven Re: dialogs - 12/07/03 01:55 AM
For someone who reckons he is a newbie, you know the concept of dialogs yet don't know the difference between /me and /describe.
Posted By: KingTomato Re: dialogs - 12/07/03 02:07 AM
what are you talking about...
Posted By: SladeKraven Re: dialogs - 24/07/03 08:56 AM
That post was meant to be a reply to Vexx0r. My apologies.
It was in contrast with => Here.
© mIRC Discussion Forums