I have a main script with a bunch of tools (based on the excellent AutoCorrect.ahk) that runs all the time. I'd like add a thing that will constantly watch for a particular window, then resize the window when it appears. Part of my question is whether WinWaitActive can be used this way. The help docs indicate that #WinWaitActive can NOT be used that way, but it doesn't indicate this with WinWaitActive.
The other part of my question, is how do I use the command to start with!? I wanted to try it in a simple stand-alone script before putting it in my other big script, so I made this:
Code: Select all
#NoEnv ; For security #SingleInstance force #Persistent WinWaitActive, , Web Student Management, 2 MsgBox, Web Window open
WinWaitActive, Web Student Management, , 2
and I tried
WinWaitActive, , Web Student Management, 2
But with both of them, the MsgBox just pops up as soon as I start the script. It does not wait for the window.
Ideas what I'm doing wrong?
Also, Am I even using WinWaitActive correctly?