Checks if the specified window exists.
Deprecated: These control flow statements are not recommended for use in new scripts. Use the WinExist function instead.
IfWinExist , WinTitle, WinText, ExcludeTitle, ExcludeText IfWinNotExist , WinTitle, WinText, ExcludeTitle, ExcludeText
If all parameters are omitted, the Last Found Window will be checked to see if it still exists (or doesn't exist in the case of IfWinNotExist).
If either of these control flow statements determines that a qualified window exists, the Last Found Window will be updated to be that window. In other words, if IfWinExist evaluates to true or IfWinNotExist evaluates to false, the Last Found Window will be updated.
To discover the HWND of a control (for use with Post/SendMessage or DllCall), use ControlGet Hwnd or MouseGetPos.
SetWinDelay does not apply to these control flow statements.
Window titles and text are case sensitive. Hidden windows are not detected unless DetectHiddenWindows has been turned on.
WinExist(), WinActive(), SetTitleMatchMode, DetectHiddenWindows, Last Found Window, Process, WinActivate, WinWaitActive, WinWait, WinWaitClose, #IfWinActive/Exist