alias -l _call {
if ((!$appactive) || (($active != $1)) {
if ($input(Someone looks for you in $1 $+ . Go to that window ?,y)) window -a $1
}
}
From help file:
$appactive
Returns $true if mIRC is the active application, otherwise it returns $false.
$appstate
Returns the display state of the mIRC window: minimized, maximized, normal, hidden, or tray.
$window(-2).state exists too, but $appstate is better I guess...