Checks to see if a specified window exists and is currently active.
WinActive ( "title" [, "text"] )
title | The title/hWnd/class of the window to check. See Title special definition. |
text | [optional] The text of the window to check. Default is an empty string. See Text special definition. |
Success: | the handle to the window if it is active. |
Failure: | 0 otherwise. |
WinExists, WinTitleMatchMode (Option), WinWait, WinWaitActive, WinWaitClose, WinWaitNotActive