Core Function WinActive

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> WinActive ( <title>, <text> ) </pre> === Description === Checks to see if a specified window exists and is currently active. === Parameters === ==== Title ==== The tit...")
 
m (1 revision)
 
(3 intermediate revisions by one user not shown)
Line 11: Line 11:
 
==== Title ====
 
==== Title ====
  
The title of the window to activate.
+
The title of the window.
  
==== clicks ====
+
==== Text ====
  
Optional; The text of the window to activate.
+
Optional; The text of the window to read.
  
 
=== Return Value ===
 
=== Return Value ===

Latest revision as of 12:38, 14 June 2015

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