I'm trying to write a script that will wait at the top of the loop for any window change. For example, if the user goes from Notepad to IE the loop will continue. I tried WinWaitActive with no parameters and SetTitleMatchMode 2 but haven't had any success. Any help?
Wait for any window change?
Started by
Guesting
, Dec 29 2011 03:28 AM
2 replies to this topic
#1
-
Posted 29 December 2011 - 03:28 AM
WinGetActiveTitle , CurrentTitle SetTimer , CheckTitle, 1000 return CheckTitle: WinGetActiveTitle , Title if (Title = CurrentTitle) return CurrentTitle := Title MsgBox , new window return
#2
-
Posted 29 December 2011 - 05:48 AM
Loop { WinWaitActive A ; makes the active window to be the Last Found WinWaitNotActive ; waits until the active window changes ; ........... SoundBeep, 750, 50 }
#3
-
Posted 29 December 2011 - 03:29 PM