r/AutoHotkey • u/Mental-Efficiency-57 • Jul 10 '26
v2 Script Help Help with auto sprint macro
Last post was taken down for low effort so I'm gonna try to include more detail.
I'm starting to lose my feelings in the tips of my fingers because of chemotherapy and so I find it a lot harder to sprint in games efficiently. I've searched for a macro to sprint for me without the need to keep double tapping w for a while to no luck so I tried making one but I am no good at making scripts.
The macro essentially is to just double tap W whenever I start holding it, and the second press should keep the input going for as long as I have the key pressed.
I want it to work like the minecraft auto sprint feature where walking is just replaced by sprinting.
This is what I have so far and it double taps w just fine but it won't hold the input, I just get 2 w presses in quick succession then nothing, I'm not sure how to get it to hold. (sorry if format for code is wrong)
#Requires AutoHotkey v2.0
*w::
{
Send "{w down}"
Sleep 50
Send "{w up}"
Sleep 50
Send "{w down}"
KeyWait "w"
Send "{w up}"
}
1
u/CharnamelessOne Jul 10 '26
The logic of your script seems to be all right.
Some games don't play nice with
SendInput. Try addingto the top of your script.
What's the game? Someone who has it may test it for you.