Vocola.net
Vocola 3.1 Function Library
Wait(milliseconds)
Namespaces LibraryMain ► Wait
Pauses command execution for a specified number of milliseconds.
Syntax
Wait(milliseconds)
Parameters
milliseconds
Number of milliseconds to pause.
Remarks
When controlling applications by sending keystrokes, effects are not always instantaneous. Use this function to insert pauses in a command, allowing the active application to respond to previous actions.

Choosing the right number of milliseconds can be a challenging tradeoff between command speed and command reliability. When possible, use WaitForWindow instead.

Examples
CopyClose a window by pointing at the taskbar
Close Here = {RightButton} Wait(500) c;
This command allows you to close a window by pointing at its taskbar button and saying "Close Here". It clicks the right mouse button to raise the window's context menu and presses the "c" key to choose the "Close" option. The call Wait(500) is needed to give the context menu enough time to appear.

Assembly: VocolaFunctionLibrary (Module: VocolaFunctionLibrary) Version: 3.1.1.0 (3.1.1.0)