AutoHotkey not working in a specific game

Ask gaming related questions (AHK v1.1 and older)
vittbarbieri
Posts: 3
Joined: 28 Dec 2021, 16:11

AutoHotkey not working in a specific game

28 Dec 2021, 16:17

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.
Rohwedder
Posts: 7656
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: AutoHotkey not working in a specific game

29 Dec 2021, 03:48

vittbarbieri
Posts: 3
Joined: 28 Dec 2021, 16:11

Re: AutoHotkey not working in a specific game

30 Dec 2021, 09:18

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
Rohwedder
Posts: 7656
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: AutoHotkey not working in a specific game

30 Dec 2021, 11:05

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
User avatar
Gubna
Posts: 29
Joined: 29 Nov 2021, 09:00
Contact:

Re: AutoHotkey not working in a specific game

11 Mar 2022, 14:42

Can you post your script so we can see what you are working with to better assist?
lukerb10
Posts: 1
Joined: 25 Mar 2024, 22:25

Re: AutoHotkey not working in a specific game

25 Mar 2024, 22:27

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
Rohwedder
Posts: 7656
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: AutoHotkey not working in a specific game

26 Mar 2024, 06:37

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

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 122 guests