Command readkey

The command readkey is used to pause the execution of the application for a certain time.


  1. miliseconds [integer]
    Pause time in milliseconds.
  2. variablereturn [string]
    Variable that will store the return of the command.


In the example above the variable $(sPressedKey) will store the variable that is pressed. The command readkey requires miliseconds to set the maximum time to wait for a key to be pressed.

If no key has been pressed at the defined time (5 seconds), the application assumes that the Cancel key has been pressed.