On START » History » Version 4
Per Amundsen, 11/16/2015 04:24 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *on <level>:START:<commands>* |
||
4 | |||
5 | Triggers the first time a script is loaded and every time after that when AdiIRC is run. |
||
6 | |||
7 | 4 | Per Amundsen | _See also [[/load]], [[/reload]], [[/unload]], [[on LOAD]], [[on UNLOAD]]._ |
8 | 1 | Per Amundsen | |
9 | *Parameters* |
||
10 | |||
11 | <level> - The level for the event to trigger. |
||
12 | <commands> - The commands to be performed when the event listener's criteria is met. |
||
13 | |||
14 | *Example* |
||
15 | |||
16 | <pre> |
||
17 | ; Create a init alias. |
||
18 | alias -l initscript { |
||
19 | ; Set the %loaded variable to 'on' |
||
20 | set %loaded on |
||
21 | } |
||
22 | |||
23 | ; Listen for the START event, and when matched, run this initscript alias. |
||
24 | on *:START:initscript | echo -ag Script is $iif(%loaded,loaded,not loaded) |
||
25 | </pre> |