This is actually a continuation of this thread about waiting for a window to open. (thanks Osprey and Vsub!)
The loop works fine in an AHK script file by itself. I'm hoping to have it in with my main master AutoCorrect script that's always running in the background though. I made the below script just to test whether the loop would work "next to" other things. It does not. The first hotkey works, but the loop and the second hotkey do not.
I tried wrapping the loop in #WinWaitActive but that did not work either.
Ideas?
Code: Select all
#NoEnv
#SingleInstance force
;#################################
::testa::test A
Loop
{
WinWaitActive,Web Student Management
WinMaximize
WinWaitNotActive
Sleep, 1000
}
::textb::test B