Sprintkey script
Sprintkey script
Hello, I need help to create a script that makes me sprint in one tap
Especially in a game, it needs to press W twice to run, I want a script that makes me sprint in one W, with the "w" activation key.. Is this possible?
Especially in a game, it needs to press W twice to run, I want a script that makes me sprint in one W, with the "w" activation key.. Is this possible?
Re: Sprintkey script
@boiler
yes i did, it works on typing, but ingame doesn't seem to work
yes i did, it works on typing, but ingame doesn't seem to work
Re: Sprintkey script
You can try as admin.
viewtopic.php?f=7&t=11084
Code: Select all
If !A_IsAdmin && !(DllCall("GetCommandLine", "str") ~= " /restart(?!\S)") {
Try Run *RunAs "%A_AhkPath%" /restart "%A_ScriptFullPath%"
ExitApp
}
~w::
SetKeyDelay,, 25
Send w
Return
Re: Sprintkey script
I always run as admin
I tried the last code you sent, but my character doesn't run, the script is spamming ww really quickly.
practically, the script has to make me run without stopping and when I release the activation key which in this case is the "w" the script stops. Do you think it is possible to create such a script?
really thanks for the help
I tried the last code you sent, but my character doesn't run, the script is spamming ww really quickly.
practically, the script has to make me run without stopping and when I release the activation key which in this case is the "w" the script stops. Do you think it is possible to create such a script?
really thanks for the help
Re: Sprintkey script
Since AHK knows nothing about running or stopping, you would need to specify what keys to send, and with what triggering & timing, step by step.
Re: Sprintkey script
My suggestion is not about coding AHK. It is about describing your goal in ways that refer to keyboard, mouse, or windows. If you do not know your goal with those things, AHK will not enhance your success in achieving it!
Re: Sprintkey script
Code: Select all
~w:: ;
send {w down}
sleep 5 ;or more than 5
send {w up}
sleep 5
send {w down}
return
w up::
sleep 20
send {w up} ; getkeystate for WASD before the release maybe needed...
return
Re: Sprintkey script
Yeah, it's close to what I want, now it runs by pressing once, but after a sec it goes crazy, like the ww keeps spamming, and it runs and stop in like 0.1secsshanshans wrote: ↑21 Jun 2022, 12:38Something like that ?Code: Select all
~w:: ; send {w down} sleep 5 ;or more than 5 send {w up} sleep 5 send {w down} return w up:: sleep 20 send {w up} ; getkeystate for WASD before the release maybe needed... return
Re: Sprintkey script
Code: Select all
w::
toggle:=!toggle
if toggle=1
{
send {w down}
sleep 55 ; tweakable
send {w up}
sleep 55 ; tweakable
send {w down}
return
}
send {w up}
return
Press w one time to run , press it again to stop. (It may work ¯\_( ͡° ͜ʖ ͡°)_/¯ Good LUCKI)