Core Function WinActive
From Sputnik Wiki
(Difference between revisions)
(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...") |
(→Parameters) |
||
Line 11: | Line 11: | ||
==== Title ==== | ==== Title ==== | ||
− | The title of the window | + | The title of the window. |
==== clicks ==== | ==== clicks ==== | ||
− | Optional; The text of the window | + | Optional; The text of the window. |
=== Return Value === | === Return Value === |
Revision as of 23:51, 26 November 2011
WinActive ( <title>, <text> )
Contents |
Description
Checks to see if a specified window exists and is currently active.
Parameters
Title
The title of the window.
clicks
Optional; The text of the window.
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");