$appstate

From Scriptwiki
Revision as of 14:56, 10 November 2005 by Microbe (talk | contribs) (changed $() link to $eval())

Jump to: navigation, search

Returns the display state of the main mIRC window.

$appstate
  • This identifier has no properties or options.
  • Will return one of the following states: minimized, maximized, normal, hidden, or tray.

Example

The following example will beep if mIRC is currently minimized or in the tray.

 on *:TEXT:$(* $+ $me $+ *):#:{
   ;Checking $appstate against a list, seperated by spaces (ascii char 32).
   if ($istok(minimized tray,$appstate,32)) {
     ;Beep because someone mentioned your nick, and mIRC is minimized or in the tray.
     beep
   }
 }

See Also

$appactive which can check the basic state of mIRC.