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

m (bot: cat fixing naming)
m (Example)
Line 10: Line 10:
  
 
== Example ==
 
== Example ==
This example will popup an [[$input identifier - mIRC|$input window]] before you exit mIRC:
+
This example will popup an {{mIRC|$input}} window before you exit mIRC:
 
<source lang="mIRC">ON *:EXIT:noop $input(Goodbye!,o,Bye Window)</source>
 
<source lang="mIRC">ON *:EXIT:noop $input(Goodbye!,o,Bye Window)</source>
  

Revision as of 02:45, 16 October 2014

The ON EXIT event triggers specifically when mIRC is exiting. This event can allow scripts to essentially clean themselves up, including removing unnecessary variables and other stored value types.

Synopsis

ON <level>:EXIT:<commands>

Parameters

<level>The level for the event to trigger.

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

Example

This example will popup an $input window before you exit mIRC:

ON *:EXIT:noop $input(Goodbye!,o,Bye Window)

Compatibility

Added: mIRC v5.81
Added on: 09 Nov 2000
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also