Autohotkey causes key jamming for no apparent reason

Ask gaming related questions
TnF
Posts: 8
Joined: 15 Sep 2018, 10:50

Autohotkey causes key jamming for no apparent reason

Post by TnF » 15 Sep 2018, 11:04

Hello guys. Running latest Autohotkey with this simple code i wrote:

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
LWin::LAlt
Ralt::LWin
This is so that i don't press the windows key accidentally on my laptop keyboard (small keys) and still allow me access to the windows key with since i have 2 alt keys. What i've noticed though is that it causes key jamming (in PUBG) specifically with the WASDEQ keys, probably because these are what i have to keep pressed down for a long time. Also i've noticed while having pressed the windows key (aka alt key after the script) the game rejects MOUSE3 input (the middle click scroll-wheel switch) which makes NO SENSE. It jams it completely! And i am not running it with the special logitech software (Logitech G502 mouse), only with the on-board profile of the mouse! I didn't do further troubleshooting because if i don't run the script i don't have the issues.

Also found this similar thread from 2010 but not much other than removing this line:

Code: Select all

SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
https://autohotkey.com/boards/viewtopic.php?t=15986

Please help me!

PS. Before you ask keyboard has good n-key rollover, it is connected via PS/2 internally, not a prb if i don't use autohotkey
PS 2. Regarding the jammed keys, what i mean for example W was pressed but the game doesn't detect it, i have to release and re-press again
TnF
Posts: 8
Joined: 15 Sep 2018, 10:50

Re: Autohotkey causes key jamming for no apparent reason

Post by TnF » 17 Sep 2018, 00:33

No-one really?
Deleting this made no difference!

Code: Select all

SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
Onimuru
Posts: 33
Joined: 08 Sep 2018, 18:35
GitHub: Onimuru

Re: Autohotkey causes key jamming for no apparent reason

Post by Onimuru » 18 Sep 2018, 00:45

Not the answer you're looking for but if you straight up want to remap those keys, this is the easiest way to do it: https://keytweak.en.softonic.com/
TnF
Posts: 8
Joined: 15 Sep 2018, 10:50

Re: Autohotkey causes key jamming for no apparent reason

Post by TnF » 18 Sep 2018, 19:33

yeah, i've seen this program when i wanted to do this but it's not up to my needs. Autohotkey does what i want, it's just this issue
TnF
Posts: 8
Joined: 15 Sep 2018, 10:50

Re: Autohotkey causes key jamming for no apparent reason

Post by TnF » 25 Sep 2018, 01:34

Still no fix :/
Onimuru
Posts: 33
Joined: 08 Sep 2018, 18:35
GitHub: Onimuru

Re: Autohotkey causes key jamming for no apparent reason

Post by Onimuru » 25 Sep 2018, 02:50

Code: Select all

SendMode Input

Exit

LWin::Alt
Ralt::RWin
Or just use the program I linked, I use it. For straight up remaps, it's better. Changes are made to the registry I guess
TnF
Posts: 8
Joined: 15 Sep 2018, 10:50

Re: Autohotkey causes key jamming for no apparent reason

Post by TnF » 25 Sep 2018, 03:32

Yes but i don't want to restart to make changes, not to mention the other limitations.
I will try your code and see if it eliminates the problem
TnF
Posts: 8
Joined: 15 Sep 2018, 10:50

Re: Autohotkey causes key jamming for no apparent reason

Post by TnF » 01 Oct 2018, 10:38

Onimuru wrote:

Code: Select all

SendMode Input

Exit

LWin::Alt
Ralt::RWin
Or just use the program I linked, I use it. For straight up remaps, it's better. Changes are made to the registry I guess
this script is worse. Makes random win key stuck
TnF
Posts: 8
Joined: 15 Sep 2018, 10:50

Re: Autohotkey causes key jamming for no apparent reason

Post by TnF » Today, 15:06

UPDATE: Still no solution to this problem. Also windows seems to bypass autohotkey since win+(letter) shortcuts still work! Seriously NOBODY knows how to solve this? AUTOHOTKEY DEVS HELP!
Ruevil2
Posts: 142
Joined: 14 Jul 2014, 10:39

Re: Autohotkey causes key jamming for no apparent reason

Post by Ruevil2 » Today, 15:24

TnF wrote:
Today, 15:06
UPDATE: Still no solution to this problem. Also windows seems to bypass autohotkey since win+(letter) shortcuts still work! Seriously NOBODY knows how to solve this? AUTOHOTKEY DEVS HELP!
Jesus dude stop crying. First of all your question is not dev level. Not even close. You need to go RTFM. The solution to your problem is basic, and likely no more than a 1 line edit. No one here is going to do it for you. We will try to help but most of us here are not gamers and we are not going to start just to fix your script.

Go here and go through all of the things listed, especially #3 as this is will probably solve your issue. These solutions were posted over 14 years ago, familiarize yourself with the search bar.
TnF wrote:
Today, 15:06
UPDATE: Still no solution to this problem. Also windows seems to bypass autohotkey since win+(letter) shortcuts still work!
Of course they do. The win key is considered a modifier, like ctrl and alt. It doesn't operate like a standard key. You need to go RTFM.
Post Reply

Return to “Gaming”