Suspends the current thread and waits for the specified number of milliseconds before continuing.
In v2.0 and later, this command properly uses multiple threads. In versions prior to 2.0, this command utilized a Windows message loop to delay, which could cause problems if multiple WAIT commands were active at the same time.
In v2.0 and later, this command should only be used for simple scripts where there are no thread synchronization issues or where you have avoided those issues with the #SECTION command. To avoid problems with thread synchonisation entirely, use the #ALARM command instead of using #WAIT.
The #WAIT command on its own with no parameter will still cause the script to run in a new thread but without causing any waiting.
Add comment