menu @Window {
dclick {
if ($line(@Window,1,1) != $null) {
do some stuff
}
}
}
Unless you always have "0" in line 1 if it has lines, use $null. Also, no need to halt something like this. If it's $null, it won't have another other commands to do anyhow. If you DO want to halt something, use RETURN unless you're halting mIRC's commands/outputs rather than the script.
not to make NEW post, but just to add to this one...
so i use for same window this:
lbclick {
if ($line(@window),1,1) != $null) {
do some things
}
else { return }
}
the problem is that when i load this window
and when window loads contents on side listbox
and when i DONT click on valid item but on the bottom (below all items) in blank space
i get errors
shouldnt this: else { return }
supposed to halt it ?