Checks to see if a specified window exists and is currently active.
WinActive ( "title" [, "text"] )
Parameters
title | The title of the window to activate. |
text | [optional] The text of the window to activate. |
Return Value
Success: | Returns 1. |
Failure: | Returns 0 if window is not active. |
Remarks
None.
Related
WinExists, WinWait, WinWaitActive, WinWaitClose, WinWaitNotActive, WinTitleMatchMode (Option)
Example
If WinActive("Untitled -") Then
MsgBox(0, "", "Window was active")
EndIf