mIRC Home    About    Download    Register    News    Help

Print Thread
#35615 11/07/03 05:02 AM
Joined: Jun 2003
Posts: 67
D
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2003
Posts: 67
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


while (demi == nub) {
inc %skill
}
#35616 11/07/03 05:30 AM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
The best source for sample dialogue code is int he mIRC help file. It has a couple of snippets there. /help dialogs

#35617 11/07/03 05:36 AM
Joined: Jun 2003
Posts: 67
D
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2003
Posts: 67
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..


while (demi == nub) {
inc %skill
}
#35618 11/07/03 06:04 AM
Joined: Jul 2003
Posts: 46
V
Ameglian cow
Offline
Ameglian cow
V
Joined: Jul 2003
Posts: 46
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


Last edited by vexx0r; 11/07/03 06:08 AM.
#35619 11/07/03 06:06 AM
Joined: Jun 2003
Posts: 67
D
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2003
Posts: 67
ok see i justed didnt get the /dialog -m example example before thank you much


while (demi == nub) {
inc %skill
}
#35620 11/07/03 06:23 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
might i suggest /help $input
much eaiser.


-KingTomato
#35621 11/07/03 06:26 AM
Joined: Jul 2003
Posts: 46
V
Ameglian cow
Offline
Ameglian cow
V
Joined: Jul 2003
Posts: 46
heh, i am not familiar with all one can do with mirc yet so i probably shouldnt be offering help anyway...

#35622 11/07/03 06:29 AM
Joined: Jun 2003
Posts: 67
D
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2003
Posts: 67
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


while (demi == nub) {
inc %skill
}
#35623 11/07/03 06:32 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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)
}


-KingTomato
#35624 12/07/03 01:55 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
For someone who reckons he is a newbie, you know the concept of dialogs yet don't know the difference between /me and /describe.

#35625 12/07/03 02:07 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
what are you talking about...


-KingTomato
#35626 24/07/03 08:56 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
That post was meant to be a reply to Vexx0r. My apologies.
It was in contrast with => Here.


Link Copied to Clipboard