Pauses command execution until a specified window is the foreground window, with a specified timeout.
Syntax
WaitForWindow(windowTitleFragment, timeout)
Parameters
- windowTitleFragment
- All or part of the title of the desired window. Case insensitive.
- timeout
- Number of seconds to wait before aborting.
Remarks
Switching between windows is not instantaneous. When a command controls more than one window,
use this function to pause until the window you want is the foreground window.
If within timeout seconds the foreground window title does not contain windowTitleFragment, this function aborts the calling command and displays an error message in the Vocola Log window.
See WaitForWindow(windowTitleFragment) for an example.
See Also
Assembly: VocolaFunctionLibrary (Module: VocolaFunctionLibrary) Version: 3.1.1.0 (3.1.1.0)