On CLOSING » History » Version 4
Per Amundsen, 02/13/2023 09:40 PM
1 | 1 | Per Amundsen | _Added in 4.4_ |
---|---|---|---|
2 | |||
3 | *<notextile>on <level>:CLOSING:<|@|*>:<commands></notextile>* |
||
4 | |||
5 | 3 | Per Amundsen | Trigger when manually closing a custom window, using [[/halt]] cancels the closing. |
6 | 1 | Per Amundsen | |
7 | *Parameters* |
||
8 | |||
9 | <level> - The [[User Access Level]] for the event to trigger. |
||
10 | <@|*> - The [[Matchtarget]] to listen to. |
||
11 | <commands> - The commands to be performed when the event listener's criteria is met. |
||
12 | |||
13 | *Example* |
||
14 | |||
15 | <pre> |
||
16 | 4 | Per Amundsen | on *:CLOSING:@window:echo -ag $target is closing, cancel the closing by halting | halt |
17 | 1 | Per Amundsen | </pre> |