mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2003
Posts: 98
T
twigboy Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Jan 2003
Posts: 98
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
}

Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
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

Joined: Jan 2003
Posts: 98
T
twigboy Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Jan 2003
Posts: 98
figured it out, but thanks anyways!


Link Copied to Clipboard