Hey guys, so essentially due to the limitations of the game I'm making this for, all key inputs made stay within the game if that makes sense. So if I have a hotkey, Ctrl+2 for another program, when I'm in game and press Ctrl+2, the input never makes it to the program where that hotkey is bound.
I have tried:
Running both game and program as an admin,
running either program or game as an admin
AHK always ran as admin
Reinstalling AHK with UAC box checked
I've was able to make the AHK script work in a google chrome keyboard tester, but when I go to use it in the program is doesn't register the key presses.
However, when using mouse macro software, the keybind set with the software on the mouse will trigger the action (but again not in game, only when at desktop. Which is why I'm trying to use AHK to by pass this).
Here's my code:
Code: Select all
;--------------------------------------------
; Works with Chrome www.keyboardtester.com/tester.html
;--------------------------------------------
XButton1::
Sleep, 100
WinActivate, ahk_pid 8092
SetTitleMatchMode 2
SetKeyDelay, 50,50
ControlSend,ahk_parent, ^{f12}, ahk_pid 8092
Sleep, 500
WinMinimize, ahk_pid 8092
return