PUBG like Autorun Key Toggle Script

Ask gaming related questions (AHK v1.1 and older)
razgriz97
Posts: 3
Joined: 09 Aug 2019, 18:11

PUBG like Autorun Key Toggle Script

09 Aug 2019, 19:02

Hi guys,

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']

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 53 guests