Difference between revisions of "$appstate"
From Scriptwiki
(changed $() link to $eval()) |
m (Reverted edit of Microbe, changed back to last version by Zyberdog) |
||
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]]:[[$ | + | 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)) { |
Revision as of 15:03, 10 November 2005
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.