Auto Run will activate with when pressing "y"
It automatically deactivates Auto Run when pressing "w", "s", "f", "Esc", "Alt+Tab" or by pressing "y" again.
The Script does not know when you aren't in game, stop or pause the script if necessary.
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
~y::
if(!yDown && !Active){
YDown := True
Active := True
Send {w Down}
}
else if(Active && !YDown){
Active := False
Send {w Up}
}
return
~y Up::
YDown := False
return
~w Up::
wDown := False
return
~w::
if(!wDown){
wDown := True
if(Active){
Active := False
}
}
return
~s::
~f::
~Esc::
~!Tab::
if(Active){
Send {w Up}
Active := False
}
return