
ssubirias3
-
Posts
350 -
Joined
-
Last visited
Reputation Activity
-
ssubirias3 got a reaction from SkysLastChance in If window is not active then exit
Try something like the below example. Also search the Help file for WinWait() and WinExists() for more information.
WinWait("Program Name", "", 3) If WinExists("Program Name", "") Then If Not WinActive("Program Name", "") Then WinActivate("Program Name", "") WinWaitActive("Program Name", "") Sleep(5000) Else Exit EndIf