Is it possible to get a reload of program to launch a command?
I'm currently using the following method, which only works if the window is getting deactivated and then activated again.
The program reload isn't changing anything notable on it's window spy, so I'm having a hard time figuring out how can I trigger and re-trigger this.
Code: Select all
TmerA := 0
SetTimer, TimerA
TimerA:
If WinActive("ahk_exe Window.exe") && !TimerA
{
TmerA := 1
; Do something
}
If !WinActive("ahk_exe Window.exe")
TimerA := 0
Return