Difference between revisions of "On active"

From Scriptwiki
Jump to: navigation, search
(no need to $lactive as it redirects to this article.)
m
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
  on <level>:ACTIVE:<*#?=!@>:<commands>
 
  on <level>:ACTIVE:<*#?=!@>:<commands>
  
The above event triggers whenever a window in mIRC is activated. The [[$active]] identifier returns the name of the currently active window, and the $lactive identifier returns the name of the window that was just de-activated. The status window is called "Status Window".
+
The above event triggers whenever a window in mIRC is activated.  
 +
* '''$active''' returns the name of the currently active window.
 +
* '''$lactive''' returns the name of the window that was just de-activated.  
 +
 
 +
The status window is called "Status Window".
  
 
'''Note''' that one or both $active or $lactive can return [[$null]].
 
'''Note''' that one or both $active or $lactive can return [[$null]].
Line 11: Line 15:
  
 
== See Also ==
 
== See Also ==
Take a look at the [[On_appactive|On Appactive event]] to react on mIRC becoming active or inactive.
+
* [[On_appactive|On Appactive event]] to react on mIRC becoming active or inactive.
 +
* [[$active]]
  
 
[[Category:Events]]
 
[[Category:Events]]

Latest revision as of 09:49, 2 July 2007

The on ACTIVE event trigger when a window in mIRC is activated.

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

The above event triggers whenever a window in mIRC is activated.

  • $active returns the name of the currently active window.
  • $lactive returns the name of the window that was just de-activated.

The status window is called "Status Window".

Note that one or both $active or $lactive can return $null.

Example

On *:ACTIVE:*: { echo -a My active window: $active My deactived window: $lactive }

This event will trigger whenever you change the active window in your mIRC.

See Also