Difference between revisions of "$active"
From Scriptwiki
Line 8: | Line 8: | ||
== Example == | == Example == | ||
The following example will [[beep]] if you are highlighted in a channel that is not mIRC's active window. | The following example will [[beep]] if you are highlighted in a channel that is not mIRC's active window. | ||
− | on *:[[On_text|TEXT]]:[[$()|$(]]* [[DollarPlus|$+]] [[$me]] $+ *):#:{ | + | on *:[[On_text|TEXT]]:[[$(...)|$(]]* [[DollarPlus|$+]] [[$me]] $+ *):#:{ |
;Do a match of [[$chan_(remote)|$chan]] against $active | ;Do a match of [[$chan_(remote)|$chan]] against $active | ||
[[If-Then-Else|if]] ($chan != $active) { | [[If-Then-Else|if]] ($chan != $active) { |
Latest revision as of 21:27, 23 November 2005
Returns the full name of the currently active window in mIRC.
$active
- This identifier has no properties or options
- Note that for the status window it will return Status Window and not what you see on the switchbar.
Example
The following example will beep if you are highlighted in a channel that is not mIRC's active window.
on *:TEXT:$(* $+ $me $+ *):#:{ ;Do a match of $chan against $active if ($chan != $active) { ;Beep because someone mentioned your nick! beep } }