$active

From Scriptwiki
Revision as of 21:27, 23 November 2005 by Doomie (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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
   }
 }