From WikiChip
On Exit - Events - mIRC
< mirc‎ | on 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.


ON <level>:EXIT:<commands>


  • <level> - The corresponding access levels for the event to trigger.
  • <commands> - The commands to be performed when the event listener's criteria is met.



Returns 1 if mIRC is in the process of exiting, 2 if mIRC is exiting and restarting, 0 otherwise.


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

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


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