mIRC Homepage
Posted By: twigboy $dialog(test,test) return result data - 10/05/03 03:29 AM
so far so good, i got this
it works, but i want to add a list of servers onto the listbox, and then show it as a dialog which locks mirc until u click ok or cancel
but since mirc halts all scripts when the $dialog command is called, i cant add it

alias select.dialog {
if ($isid) {
var %return = $dialog(select.dialog,dialog_select,-4)
if (%return != $null) return %return
else return
}
}

dialog dialog_select {
title "select"
size -1 -1 112 122
option dbu
text "Select an item:", 1, 1 1 110 8
list 2, 1 10 110 100, result size
button "&ok", 3, 39 111 35 10, default ok
button "cancel", 4, 75 111 35 10, cancel
}
Posted By: ScatMan Re: $dialog(test,test) return result data - 10/05/03 10:22 AM
nope, it doesn't halt the script
when u run the dialog with $dialog it will make the dialog the active window and u won't be able to move to other windows in the mirc, but the scripts will still work
Posted By: twigboy Re: $dialog(test,test) return result data - 10/05/03 02:20 PM
figured it out, but thanks anyways!
© mIRC Discussion Forums