Page 1 of 1

AutoHotkey not working in a specific game

Posted: 28 Dec 2021, 16:17
by vittbarbieri
Hello everyone!

AutoHotkey is not working in a specific game, when I use the command in any aplication, it is working perfectly.

Let's say my hotkey is Q and its supposed to activate the keys W+E. It works everywhere, but when I try to use it while playing, the Q is Q again, I alt tab and press Q, the Q activates W+E.

It's a steam game, not sure if this helps or not.

Re: AutoHotkey not working in a specific game

Posted: 29 Dec 2021, 03:48
by Rohwedder

Re: AutoHotkey not working in a specific game

Posted: 30 Dec 2021, 09:18
by vittbarbieri
Rohwedder wrote:
29 Dec 2021, 03:48
Hallo,
try: viewtopic.php?t=11084
Hello there,

I tried everything in that post, except for the "second user method" because the tutorial using windows XP and I'm using windows 10, all the other methods didn't work

Re: AutoHotkey not working in a specific game

Posted: 30 Dec 2021, 11:05
by Rohwedder
Your game likely takes direct input from the keyboard. In this case you have to act on hardware driver level.
See AutoHotInterception (AHI) for example.
AHI: viewtopic.php?f=6&t=45307

Re: AutoHotkey not working in a specific game

Posted: 11 Mar 2022, 14:42
by Gubna
Can you post your script so we can see what you are working with to better assist?

Re: AutoHotkey not working in a specific game

Posted: 25 Mar 2024, 22:27
by lukerb10
Gubna wrote:
11 Mar 2022, 14:42
Can you post your script so we can see what you are working with to better assist?
Hi folks,

Reviving this post to supply the script I'm using that worked in a previous game from the same developer:

Code: Select all

SetTitleMatchMode, 2
#SingleInstance Force
#IfWinActive, Horizon Zero Dawn: Complete Edition

~$RButton:: Send, % "{l " ( (Toggle:=!Toggle) ? "Down" : "Up" ) "}"

~XButton1:: 
Toggle:=false
Send, {l Up}

~`:: 
Toggle:=false
Send, {l Up}

~MButton:: 
Toggle:=false
Send, {l Up}

~e:: 
Toggle:=false
Send, {l Up}
return

Re: AutoHotkey not working in a specific game

Posted: 26 Mar 2024, 06:37
by Rohwedder
Hallo,
Mar 2022 -> Mar 2024? No hour strikes for the happy man!
But, aren't there a few Returns missing to delimit the Hotkeys?