From WikiChip
Difference between revisions of "mirc/on events/on active"
< mirc‎ | on events

(Examples)
(Parameters)
Line 8: Line 8:
  
 
<span style="display: inline-block; width: 105px;">'''<*#?=!@>'''</span>The place, or places where the event listens.
 
<span style="display: inline-block; width: 105px;">'''<*#?=!@>'''</span>The place, or places where the event listens.
 +
 +
<div style="background-color: rgba(0,0,0,.03); display: block;"><span style="border-right: 1px dashed rgba(0,0,0,.15); display: inline-block; margin-left: 105px; margin-right: 25px; width: 60px;">'''*'''</span>Any window</div>
 +
 +
<div style="background-color: rgba(0,0,0,.06); display: block;"><span style="border-right: 1px dashed rgba(0,0,0,.15); display: inline-block; margin-left: 105px; margin-right: 25px; width: 60px;">'''?'''</span>Query windows</div>
 +
 +
<div style="background-color: rgba(0,0,0,.03); display: block;"><span style="border-right: 1px dashed rgba(0,0,0,.15); display: inline-block; margin-left: 105px; margin-right: 25px; width: 60px;">'''#'''</span>Any channel</div>
 +
 +
<div style="background-color: rgba(0,0,0,.06); display: block;"><span style="border-right: 1px dashed rgba(0,0,0,.15); display: inline-block; margin-left: 105px; margin-right: 25px; width: 60px;">'''[,#]'''</span>Specific channel names</div>
  
 
<span style="display: inline-block; width: 105px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met.
 
<span style="display: inline-block; width: 105px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met.

Revision as of 18:58, 24 June 2014

The ON ACTIVE event monitors when a certain window, or window type, is activated or has had its active status changed.

Synopsis

ON <level>:ACTIVE:<*#?=!@>:<commands>

Parameters

<level>The level for the event to trigger.

<*#?=!@>The place, or places where the event listens.

*Any window
?Query windows
#Any channel
[,#]Specific channel names

<commands>The commands to be performed when the event listener's criteria is met.

Examples

; Listen for any window becoming active,
; then display information about that window and the previous active window
 
ON *:ACTIVE:*:echo -a * $active is now active, took over for $lactive

Compatibility

Added: mIRC v5.9

Added On: 26/04/2001

See Also