Jump to content

AutoWalking Hotkey for AutoHotkey


Turul1989

Recommended Posts

Here is code i am using for ahk file:

 

 

 

 

/*
[Variables]
ExeFile=ACOdyssey.exe
DirPath=C:\Program Files (x86)\Assassins Creed Odyssey\
WinTitle=ACOdyssey
WinClass=W2ViewportClass
*/

{
/*--------------------------p--------------------------
Click once to start ore stop run/walk.
Click twice to toggle beween running and walking.
Keep it pressed down to sprint.
*/
l::
keywait, l, T0.20
If errorlevel = 0
{
KeyWait, l, D T0.20
If errorlevel = 0
{
Sendevent, {control down}{control up}
}
else
If errorlevel = 1
{
sleep, 10
If (bAutorun = 0){
Sendevent, {w down}
bAutorun++
}Else{
Sendevent, {w up}
bAutorun--
}
}
Return
}
else
If errorlevel = 1
{
while GetKeyState("l", "l")
{
SendEvent, {shift down}
KeyWait, .
SendEvent, {shift up}
}
}
return
} ;--------------------------The End--------------------------

Link to comment
Share on other sites

  • 1 year later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...