Running won't stop in a game
Posted: 28 May 2023, 17:03
Hi guys,
I'm a old fart and just can't stand playing games with WASD. So I'm screwed if a game forces me to because of lack of changing keys ingame (my newest game: Jedi Survivor).
So I read about AHK and that I could very easily switch WASD with the arrow key. And I figured out this little scrip should to the trick:
And it worked indeed. But after a few minutes when I'm running with my char I'm on "autorun": my char continues to move in the direction of the last key i pushed, f.e. I'm strafing to the right and the char continues to strafe further even I released the key. And he moves further indefinitely. I thought it had somewhat to do with a "overflow" or something because I'm holding a key for too long and threw
#MaxHotkeysPerInterval 9999
as first line into the scrip but that didn't make a difference.
The working walkaround ingame is to release the key and push it again, release again and push the opposite button.
Any ideas what the problem could be or any tips to the (admittingly lousy) scrip of mine? Or ain't AHK the problem but the old brain in front of the keyboard?
Cheers,
WW
[Mod action: Moved topic to ”Gaming”]
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
I'm a old fart and just can't stand playing games with WASD. So I'm screwed if a game forces me to because of lack of changing keys ingame (my newest game: Jedi Survivor).
So I read about AHK and that I could very easily switch WASD with the arrow key. And I figured out this little scrip should to the trick:
Code: Select all
w::up
a::left
s::down
d::right
up::w
left::a
down::s
right::d
F12::ExitApp
#MaxHotkeysPerInterval 9999
as first line into the scrip but that didn't make a difference.
The working walkaround ingame is to release the key and push it again, release again and push the opposite button.
Any ideas what the problem could be or any tips to the (admittingly lousy) scrip of mine? Or ain't AHK the problem but the old brain in front of the keyboard?
Cheers,
WW
[Mod action: Moved topic to ”Gaming”]
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]