Difference between revisions of "On exit"

From Scriptwiki
Jump to: navigation, search
 
m
 
Line 12: Line 12:
  
 
== See Also ==
 
== See Also ==
To execute commands when mIRC "is started" (respectively whenever the script is loaded), take a look at the [[On_start|On start event]].
+
* [[On_start|On start event]] to execute commands when mIRC is started.
  
 
[[Category:Events]]
 
[[Category:Events]]

Latest revision as of 09:55, 2 July 2007

The on EXIT event triggers when mIRC itself is closed.

on <level>:EXIT:<commands>


The purpose of this event is to allow scripts to exit cleanly, e.g. unset variables, save settings, etc.

Example

on *:EXIT: {
 unset %temp*
}

This example would unset all variables beginning with temp.

See Also