Wait
Purpose
Wait a specified amount of seconds or (optionally) until certain keys are pressed.
Download
Wait
Installation
None. Download the ZIP file, extract the included executable and run it.
Please note: this is a console application. You should run it from a command prompt.
Use case(s)
-
-
Slow down batch processing, e.g. allow the user to read an otherwise fast disappearing message.
Syntax
Wait /time=<number of seconds> [/key=<key to skip>] [/minimum=<minimum wait time although key was pressed>]
Parameters:
-
/t or /time = Number of seconds to wait
-
/k or /key = Key to skip the pause
-
/m or /minimum = Wait at least number of seconds, although a key is pressed. /k needs to be passed for /m to have any effect.
Examples
Wait /t=10 /k=x
Waits for 10 seconds or until 'x' is pressed. Upper/lower case doesn't matter. In addition to 'x', <SPACE> and <ESC> are also recognized as valid keys.
Source code
The PowerBASIC source code is available at Github
Known issues / limitations
Version