$appactive

From Scriptwiki
Revision as of 21:28, 23 November 2005 by Doomie (talk | contribs) (yes, comments.. $() -> $(...) *lazy*)

Jump to: navigation, search

Returns $true if mIRC is the active application, otherwise it returns $false.

$appactive
  • This identifier has no properties or options.

Example

This example will beep if someone mentions your nick in a channel, but only if you are currently looking at another application.

 on *:TEXT:$(* $+ $me $+ *):#:{
   ;Checking if $appactive returns $false by prefixing it with the ! character.
   if (!$appactive) {
     ;Beep because someone mentioned your nick, and you don't have mIRC in focus!
     beep
   }
 }

See Also

$appstate provides more detailed information about what state mIRC is in.