Core Function WinWaitActive

From Sputnik Wiki
Jump to: navigation, search
WinWaitActive ( <title>, <text>, <timeout> )

Contents

Description

Waits until the requested window is active

Parameters

Title

The title of the window.

Text

Optional; The text of the window to read.

Timeout

Optional; Timeout in seconds.

Return Value

Success: Returns 1.

Failure: Returns 0 if timeout occurred.

Remarks

The window is polled every 250 milliseconds or so.

See "WinTitleMatchMode" in Opt.

Example

if(WinWaitActive("Untitled", "", 5)) // Wait 5 seconds for the window to close
{
	println("Notepad is the active window");
}
else
{
	println("Notepad is not the active window");
}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox