Project

General

Profile

Actions

On UNLOAD » History » Revision 1

Revision 1/5 | Next »
Per Amundsen, 11/14/2015 02:43 AM


Added in 1.8.10

on <level>:UNLOAD:<commands>

Triggers when a script file is unloaded.

See also on LOAD on START.

Parameters

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

Example

; Create a cleanup alias.
alias -l cleanup {
  ; Unset the %loaded variable
  unset %loaded
}

; Listen for the UNLOAD event, and when matched, run this cleanup alias.
on *:UNLOAD:cleanup | echo -ag Script is $iif(%loaded,loaded,not loaded)

Updated by Per Amundsen about 9 years ago · 1 revisions

Also available in: PDF HTML TXT