On CLOSING » History » Version 2
Per Amundsen, 02/13/2023 05:09 PM
1 | 1 | Per Amundsen | _Added in 4.4_ |
---|---|---|---|
2 | |||
3 | *<notextile>on <level>:CLOSING:<|@|*>:<commands></notextile>* |
||
4 | |||
5 | Trigger when manually closing a custom window. Using [[/halt]] cancels the closing. |
||
6 | |||
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 | 2 | Per Amundsen | on *:CLOSING:@window:echo -ag @window is closing, prevent the close by halting | halt |
17 | 1 | Per Amundsen | </pre> |