Added in v2.0


Syntax: #WAITSIG signal timeout {match-commands} {timeout-commands}
Related: #SIGNAL

Suspends the current thread and wait until the specified signal is fired. If timeout is specified, then it is the maximum number of milliseconds to wait. If the timeout expires, the rest of the thread's script is aborted.

The match-commands and timeout-commands are optional command blocks that should be executed when the signal is received, or when the timeout occurs. If these are omitted, then the script will continue with the next statement when the signal is received, and will exit the script if a timeout occurs.

Add comment

Login or register to post comments