9.0
293
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 NaturallySpeaking 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 milliseconds
Argument Description
millisecond
s
A value from 0 to 32,767 indicating the number of milliseconds to wait.
Example
This example causes the script to pause for 100 milliseconds (one tenth of a second) before continuing.
Wait 100
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).
WaitForWindow
The WaitFor Window command suspends execution of the script until a desired window appears in the foreground.
Note
This command works only for legacy Dragon NaturallySpeaking version 5 commands that have been imported
into
version 8. It will not work in commands that you create using the MyCommands editor.
Syntax
WaitForWindow caption [, windowClass [, timeout ] ]
Argument Description
caption A text string to match against the window caption. The string may (and often will)
include the asterisk (*) character as a wild-card to match against variable parts of










