That would seem to me to be really the only sensible way to handle the situation and still maintain control.ĭLL Injection is best a tricky proposition. To work with the background window you'd first want to bring it to the foreground, activate it, do your stuff, and send it back into the background. Basically the reason for this is that AHK was mainly designed to work on Active Windows and not Inactive ones.
Also, trying to do much of anything in background mode with AutoHotkey can be problematic. I think they probably do some 'funny' stuff with the keyboard drivers since there is a lot of window switching code built in. I have yet to find a way to use AHK efficiently with WinEQ2. I Use LavishSoft Innerspace for some of my games when I 2box.