Difference between revisions of "$appstate"

From Scriptwiki
Jump to: navigation, search
m
 
Line 17: Line 17:
  
 
== See Also ==
 
== See Also ==
 
+
* [[$appactive]] which can check the basic state of mIRC.
[[$appactive]] which can check the basic state of mIRC.
 
  
 
[[Category:Window Identifiers]]
 
[[Category:Window Identifiers]]

Latest revision as of 10:11, 2 July 2007

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.