9.0
294
the window caption. If parts of the actual window caption are guaranteed to be
unpredictable, you MUST use an * wild-card to get a successful match.
The caption may also be an empty string "", to indicate that the caption does not
matter.
windowClas
s
A text string which, when not empty (""), must exactly match (case-sensitive) the
window class name of the window you are looking for. The window class name is
usually obtainable only through programmer utilities like "Spy".
timeout The length of time, in milliseconds, to wait for the window to appear. If no
matching window appears by then, a timeout error is displayed, and the script
stops without executing any subsequent commands following WaitForWindow. If
not specified, defaults to 10 seconds.
Examples
In the following example the * in the caption is an instruction to ignore "Document1".
AppBringUp "(correct path here)winword.exe"
WaitForWindow "*Microsoft Word"
SendKeys "this text will appear in the Word document, not the splash screen"
The following example waits for Word's main window by class name.
AppBringUp "(correct path here)winword.exe"
WaitForWindow "", "OpusApp"
SendKeys "this text will appear in the Word document, not the splash screen"
The following example starts Outlook, waits as long as 30 seconds in case the network is slow, and then types
Alt+n to create a new E-mail.
AppBringUp "(correct path)outlook.exe"
WaitForWindow "*Microsoft Outlook", "", 30000
SendSystemKeys "{Alt+n}"
WakeUp
Exits sleep mode and activates the microphone.
Syntax
WakeUp
Arguments
This command does not have any arguments.
Note
WakeUp is used in the Wake Up command.










