Core Function WinActive

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

Contents

Description

Checks to see if a specified window exists and is currently active.

Parameters

Title

The title of the window.

Text

Optional; The text of the window to read.

Return Value

Success: Returns 1.

Failure: Returns 0 if window is not active.

Remarks

See "WinTitleMatchMode" in Opt

Example

If ( WinActive("Untitled -") )
    MsgBox("Window was active");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox