Checks to see if a specified window exists.
WinExists ( "title" [, "text"] )
| title | The title of the window to check. See Title special definition. |
| text | [optional] The text of the window to check. |
| Success: | Returns 1 if the window exists. |
| Failure: | Returns 0 otherwise. |
If WinExists("[CLASS:Notepad]") Then
MsgBox(0, "", "Window exists")
EndIf