On CLOSING » History » Revision 2
Revision 1 (Per Amundsen, 02/13/2023 05:09 PM) → Revision 2/5 (Per Amundsen, 02/13/2023 05:09 PM)
_Added in 4.4_
*<notextile>on <level>:CLOSING:<|@|*>:<commands></notextile>*
Trigger when manually closing a custom window. Using [[/halt]] cancels the closing.
*Parameters*
<level> - The [[User Access Level]] for the event to trigger.
<@|*> - The [[Matchtarget]] to listen to.
<commands> - The commands to be performed when the event listener's criteria is met.
*Example*
<pre>
on *:CLOSING:@window:echo -ag @window is closing, prevent the close by halting | halt
</pre>