I have carpal tunnel syndrome on my left hand, so playing FPS games for even a few minutes makes my hand unconfortable very fast. I'm trying to figure out a script on AHK to easy my strain on my hand while still having a fluid gameplay on general FPS games.
Code: Select all
XButton2::
KeyDown := !KeyDown
If KeyDown
SendInput {w down}
Else
SendInput {w up}
Return
I'm trying to replicating the exact behavior of the Autorun present on PUBG (default bind is '=').
But I'm having trouble my current script in two aspects:
1- If I interrupt the autorun by pressing 'W' once, I have to click Xbutton2 twice to get the autorun on again.
2- I want to use also A, S and D to interrupt the autorun like 'W' is already doing but also without the side effect cited above.
The game I trying to use this is Battlefield, but I guess once I figure out, I can use this on every other game that have similar player movement mechanic.
Any help would be great!
[Mod edit: Moved to 'Ask For Help > Gaming']