$active
From Scriptwiki
Returns the full name of the currently active window in mIRC.
$active
- This identifier has no properties or options
- Note that for the status window it will return Status Window and not what you see on the switchbar.
Example
The following example will beep if you are highlighted in a channel that is not mIRC's active window.
on *:TEXT:$(* $+ $me $+ *):#:{ ;Do a match of $chan against $active if ($chan != $active) { ;Beep because someone mentioned your nick! beep } }