MASSIVE input delay when using AHK and my Stream Deck Pedal combined

Ask gaming related questions (AHK v1.1 and older)
batmercury99
Posts: 7
Joined: 06 Dec 2022, 14:37

MASSIVE input delay when using AHK and my Stream Deck Pedal combined

Post by batmercury99 » 07 Dec 2022, 07:19

I use a pedal to hold modifier keys such as ctrl or alt to hotkey. The delay ONLY happens when I use a script with multi-key remappings such as <^Space::g (left ctrl + space = g). It goes away if I remap one of my pedal's keys to keys such as "a", or by using remappings on AHK such as a::b.

User avatar
mikeyww
Posts: 26601
Joined: 09 Sep 2014, 18:38

Re: MASSIVE input delay when using AHK and my Stream Deck Pedal combined

Post by mikeyww » 07 Dec 2022, 22:03

Welcome to this AutoHotkey forum!

Could try:

Code: Select all

^Space::Send g

batmercury99
Posts: 7
Joined: 06 Dec 2022, 14:37

Re: MASSIVE input delay when using AHK and my Stream Deck Pedal combined

Post by batmercury99 » 08 Dec 2022, 06:45

@mikeyww Thanks! I tried the method that you showed me, and it didn't seem to work. It stopped my character from jumping over and over again until I pressed space if I do <^Space::g too early though.

User avatar
mikeyww
Posts: 26601
Joined: 09 Sep 2014, 18:38

Re: MASSIVE input delay when using AHK and my Stream Deck Pedal combined

Post by mikeyww » 08 Dec 2022, 07:27

Awww! OK, time for real Stream Deck experts to the rescue here.

batmercury99
Posts: 7
Joined: 06 Dec 2022, 14:37

Re: MASSIVE input delay when using AHK and my Stream Deck Pedal combined

Post by batmercury99 » 13 Dec 2022, 02:37

@mikeyww I asked the official Stream Deck support for help a few days ago by email. It takes some time for them to respond since they are quite busy. Would it be possible to make a temporary script, or permanent just in case if the Stream Deck support end not being able to help? I use things such as <^Space::g and <^>^h::v

batmercury99
Posts: 7
Joined: 06 Dec 2022, 14:37

Re: MASSIVE input delay when using AHK and my Stream Deck Pedal combined

Post by batmercury99 » 13 Dec 2022, 03:58

Forgot to mention, I say temporary because I am not 100% sure if editing your AHK script with too much complexity is allowed or not in the video game I play.

User avatar
mikeyww
Posts: 26601
Joined: 09 Sep 2014, 18:38

Re: MASSIVE input delay when using AHK and my Stream Deck Pedal combined

Post by mikeyww » 13 Dec 2022, 06:36

I do not have this pedal to test a script, but I recommend that you examine the :arrow: KeyHistory, because it can help you to troubleshoot this issue and understand what keys are being activated.

batmercury99
Posts: 7
Joined: 06 Dec 2022, 14:37

Re: MASSIVE input delay when using AHK and my Stream Deck Pedal combined

Post by batmercury99 » 13 Dec 2022, 10:36

I just tried this and it looks like the script doesn't detect my pedal. I have keys such as left ctrl and left alt set on the pedal but when I try to look for it in the script it isn't there.

Maybe it can be made so that the script holds the modifier keys for you somehow? While still having to use the pedal and the keyboard of course to keep things fair.

User avatar
mikeyww
Posts: 26601
Joined: 09 Sep 2014, 18:38

Re: MASSIVE input delay when using AHK and my Stream Deck Pedal combined

Post by mikeyww » 13 Dec 2022, 10:51

You would look in the key history.
If the script does not have the keyboard hook installed, the KeyHistory window will display only the keyboard events generated by the script itself (i.e. not the user's).
Explained: #InstallKeybdHook

batmercury99
Posts: 7
Joined: 06 Dec 2022, 14:37

Re: MASSIVE input delay when using AHK and my Stream Deck Pedal combined

Post by batmercury99 » 14 Dec 2022, 03:13

Yeah it detects the hotkeys from my pedal perfectly fine with low input delay. Again, the input delay only becomes a problem if I use things such as <^Space::g or <^>^h::v

User avatar
mikeyww
Posts: 26601
Joined: 09 Sep 2014, 18:38

Re: MASSIVE input delay when using AHK and my Stream Deck Pedal combined

Post by mikeyww » 14 Dec 2022, 05:03

I do not have much way to troubleshoot this, but for other readers, I would suggest that you do the following.
1. Describe a complete example of something that does not work: what you do on the pedal, what you do on the keyboard, what actually happens, and what should happen instead.
2. Repeat #1 for something that does work.
3. Post a screenshot of the key history for both.

Test with a MsgBox command instead of a Send command. That helps you to know and confirm whether the hotkey is being triggered. Test with Notepad as the active window.

Post Reply

Return to “Gaming Help (v1)”