WaitForWindows
Previous  Top 

Prototype

BoolTimeOut:=WaitForWindow(strCaption, strClass, intTime)

Description

It stops the program execution until a window with the shown title and/or the class, or else until a certain time is spent.

Parameters

StrCaption: string containing title to call the window.

StrClass
: string corresponding to the window class.

Intime
: maximum time, in milliseconds, spent before restarting the program execution.

Returned value

BoolTimeOut
: true or false logical value. It is false if intTime passes.

Notes

None.

Example

//It starts an application 
ShellExecute('c:\windows\Notespad.exe', false);

//It waits the window opening 
ErroreTimeOut:=WaitForWindow('No Nome-Block Notes','',5000);

//It forwards 123 to the open window 
If ErroreTimeOut=false then Sendkeys('No Nome-Block Notes','123',false,false,false,false,true);

// It executes other operations…