Project

General

Profile

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* 

 &lt;level&gt; - The [[User Access Level]] for the event to trigger. 
 &lt;@|*&gt; - The [[Matchtarget]] to listen to. 
 &lt;commands&gt; - 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>