Signal » History » Version 3
Per Amundsen, 02/16/2023 03:19 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | */signal [-n] <name> [parameters]* |
||
4 | |||
5 | Trigger on SIGNAL events in all scripts that listen for signals. |
||
6 | |||
7 | *Switches* |
||
8 | |||
9 | 3 | Per Amundsen | table(ktable). |
10 | |*Switch*|*Description*| |
||
11 | | -n | Makes the script trigger immediately. | |
||
12 | 1 | Per Amundsen | |
13 | *Parameters* |
||
14 | |||
15 | 3 | Per Amundsen | table(ktable). |
16 | |*Parameter*|*Description*| |
||
17 | | <name> | Signal to trigger. | |
||
18 | | [parameters] | Parameters to send to the signal. | |
||
19 | 1 | Per Amundsen | |
20 | *Example* |
||
21 | |||
22 | <pre> |
||
23 | ;Setup a listening SIGNAL event. |
||
24 | on *:SIGNAL:testsignal:echo -a Signal was called with parameters: $1- |
||
25 | |||
26 | ;Call the testsignal with parameters Hello world! |
||
27 | /signal testsignal Hello world! |
||
28 | </pre> |