On CLOSING » History » Version 5
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 | 5 | Per Amundsen | _See also [[$target]]._ |
8 | |||
9 | 1 | Per Amundsen | *Parameters* |
10 | |||
11 | <level> - The [[User Access Level]] for the event to trigger. |
||
12 | <@|*> - The [[Matchtarget]] to listen to. |
||
13 | <commands> - The commands to be performed when the event listener's criteria is met. |
||
14 | |||
15 | *Example* |
||
16 | |||
17 | <pre> |
||
18 | 4 | Per Amundsen | on *:CLOSING:@window:echo -ag $target is closing, cancel the closing by halting | halt |
19 | 1 | Per Amundsen | </pre> |