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

(Parameters)
(Parameters)
Line 19: Line 19:
 
<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>DCC Server</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>DCC Server</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>Custom 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>Custom window</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 20:01, 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
#Channel windows
?Query windows
=DCC Chat
!DCC Server
@Custom window

<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