From WikiChip
Difference between revisions of "mirc/on events/on exit"
(Created On exit event - mIRC) |
m (Bot: adding missing title) |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|On Exit - Events}} | ||
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. | 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. | ||
Line 5: | Line 6: | ||
== Parameters == | == Parameters == | ||
− | + | * '''<level>''' - The corresponding {{mIRC|access levels}} for the event to trigger. | |
+ | * '''<commands>''' - The commands to be performed when the event listener's criteria is met. | ||
− | + | == Identifiers == | |
+ | |||
+ | === {{mIRC|$exiting}} === | ||
+ | |||
+ | Returns 1 if mIRC is in the process of exiting, 2 if mIRC is exiting and restarting, 0 otherwise. | ||
== Example == | == Example == | ||
− | This example will popup an | + | 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> | ||
== Compatibility == | == Compatibility == | ||
− | + | {{mIRC compatibility|5.81}} | |
− | |||
− | |||
== See Also == | == See Also == | ||
Line 23: | Line 27: | ||
* [[On disconnect - mIRC|ON DISCONNECT]] | * [[On disconnect - mIRC|ON DISCONNECT]] | ||
* [[On error - mIRC|ON ERROR]] | * [[On error - mIRC|ON ERROR]] | ||
+ | {{mIRC on event list}} | ||
− | [[Category:mIRC on events]] | + | [[Category:mIRC on events|exit]] |
Latest revision as of 19:16, 15 June 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
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[edit]
ON <level>:EXIT:<commands>
Parameters[edit]
- <level> - The corresponding access levels for the event to trigger.
- <commands> - The commands to be performed when the event listener's criteria is met.
Identifiers[edit]
$exiting[edit]
Returns 1 if mIRC is in the process of exiting, 2 if mIRC is exiting and restarting, 0 otherwise.
Example[edit]
This example will popup an $input window before you exit mIRC:
ON *:EXIT:noop $input(Goodbye!,o,Bye Window)
Compatibility[edit]
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[edit]
mIRC on event list