Wait
Causes the script to pause for the specified number of milliseconds before executing the next command.
Note
This command works only for legacy Dragon version 5 commands that have been imported into version 8. It will not work in commands that you create using the MyCommands editor. If you are creating a command from the MyCommands editor, use the Wait Instruction command.
Syntax
Wait seconds
Argument | Description |
---|---|
seconds | A value from 0 to 32, indicating the number of seconds to wait. |
Example
This example causes the script to pause for 10 seconds (one tenth of a second) before continuing.
Wait 10
Notes
- You can use the Wait command to ensure that an application has enough time to load before the script continues.
- To pause a script for longer than 32,767 milliseconds (32 seconds), use a loop to repeat the Wait command.
- In many cases, this command stops recognition. However, recognition does continue where it is appropriate, for example, when the previous command is a MsgBoxConfirm command (to allow spoken responses to the message box).