mIRC Home    About    Download    Register    News    Help

Print Thread
dialogs #18330 06/04/03 11:50 AM
Joined: Jan 2003
Posts: 36
S
s0tt0 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2003
Posts: 36
I need help with them. So I posted it under mIRC Help topic.
Does somebody have a good tutorial or something like that, how to make simple dialog, with 2 buttons + some radio buttons + some text fields. And how can i put to work them together. I just want tutorial where to learn dialogs.

Re: dialogs #18331 06/04/03 04:38 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
  
dialog test.s0tt0 {
  title "Test dialog for s0tt0"
  size -1 -1 135 132
  option dbu
  text "Here is one text field.", 1, 12 14 67 8
  text "Here is another text field.", 2, 12 22 67 8
  button "Help on dialogs.", 3, 12 92 65 12
  button "Button 2.", 4, 12 105 65 12
  radio "Radio button no. 1.", 5, 12 33 56 10
  radio "Radio button no. 2.", 6, 12 43 56 10
  link "Here are some dialog tutorials.", 7, 12 67 82 8
}


Now finally the last bit of code.

Code:
on *:dialog:test.s0tt0:sclick:*:{
  if ($did == 4) { echo -at Button 2 .. }
  if ($did == 3) {  /help /dialog }
  if ($did == 7) {  run http://www.mircscripts.org }
}  

Re: dialogs #18332 06/04/03 05:50 PM
Joined: Jan 2003
Posts: 36
S
s0tt0 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2003
Posts: 36
thank you very much smile

Re: dialogs #18333 06/04/03 05:59 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're welcome dude. smile

Re: dialogs #18334 06/04/03 08:34 PM
Joined: Dec 2002
Posts: 3,127
P
ParaBrat Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 3,127
you can find some good tutorials at this web page


ParaBrat @#mIRCAide DALnet