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
}