WaitForWindows |
Top Previous |
Prototype
BoolTimeOut:=WaitForWindow(strCaption, strClass, intTime)
Description
Stops the program execution until a window with the shown title and/or the class, or until a certain time has elapsed.
Parameters
StrCaption: string containing title to call the window.
StrClass: string corresponding to the window class.
IntTime: maximum time, in milliseconds, before restarting the program execution.
Returned value
BoolTimeOut: true or false value. It returns a False if time has elapsed.
Notes
None.
Example
// Start an application ShellExecute('c:\windows\Notepad.exe', false);
// Display the WaitForWindows for 5 seconds ErrorTimeOut:=WaitForWindow('Notepad','',5000);
// Send '123' to the open window If ErrorTimeOut=false then Sendkeys('Notepad','123',false,false,false,false,true);
// Execute other operations… |