Quote:
Code:
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...

I don't think $appactive is a good ideea. The alert should appear even if mirc is active. Also, he didn't say he wants the pop-up to appear only when mirc is not active :P.