mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
How do i put the Commands for buttons and so on for the mirc dialogs
i can get the dialogs to come up but its a bit pointless with not knowing where to put the scripts
e.g
title bla bla
button bla bla {//code here}
that didnt work should it have done
or how else can i do this
also i would like to know
how to use the edit boxes
so a user can type a nick or something in the edit and it would do the command
like ban them
and i would like to know how to make a separate mirc edit box come up
like where it just says enter user name
and so on thanx for any help

Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
check the On Dialog event. mIRC's help on that is very good smile

/help dialogs


"All we are saying is give peace a chance" -- John Lennon
Joined: Jul 2004
Posts: 169
S
Vogon poet
Offline
Vogon poet
S
Joined: Jul 2004
Posts: 169
here is easy example

alias test {
dialog -m test test
}

dialog test {
title "Test Dialog"
size -1 -1 202 89
option pixels
button "Press Me", 1, 23 12 65 25
}

on 1:dialog:test:sclick:*: {
if ($did == 1) {
//echo -a Hello this is test dialog
}
}

every object on dialog has itz ID
this time ID of button is 1 ( button "Press Me", 1, ....)
as you see, first number infront every object declares itz ID

so you see on even SCLICK (button click) if ID 1 (button) is pressed do things

on 1:dialog:dialognamet:SCLICK:*: {
if ($did == 1) {
//echo -a Hello this is test dialog
}
}

Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
Hey Thanks For The Answers Gys That Really Helped Thanks
:P


Link Copied to Clipboard