mIRC Homepage
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
check the On Dialog event. mIRC's help on that is very good smile

/help dialogs
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
}
}
Hey Thanks For The Answers Gys That Really Helped Thanks
:P
© mIRC Discussion Forums