Difference between revisions of "$appstate"

From Scriptwiki
Jump to: navigation, search
 
m
 
(3 intermediate revisions by 3 users not shown)
Line 8: Line 8:
 
== Example ==
 
== Example ==
 
The following example will [[beep]] if mIRC is currently ''minimized'' or in the ''tray''.
 
The following example will [[beep]] if mIRC is currently ''minimized'' or in the ''tray''.
   on *:[[On_text|TEXT]]:[[$()|$(]]* [[DollarPlus|$+]] [[$me]] $+ *):#:{
+
   on *:[[On_text|TEXT]]:[[$(...)|$(]]* [[DollarPlus|$+]] [[$me]] $+ *):#:{
 
     ;Checking $appstate against a list, seperated by spaces (ascii char 32).
 
     ;Checking $appstate against a list, seperated by spaces (ascii char 32).
 
     [[If-Then-Else|if]] ([[$istok]](minimized tray,$appstate,32)) {
 
     [[If-Then-Else|if]] ([[$istok]](minimized tray,$appstate,32)) {
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.