Turul1989 Posted February 6, 2020 Share Posted February 6, 2020 I wanna make a autohotkey for auto walking but nothing works!? Please someone do this or help me? Link to comment Share on other sites More sharing options...
Turul1989 Posted February 6, 2020 Author Share Posted February 6, 2020 Here is code i am using for ahk file: /*[Variables]ExeFile=ACOdyssey.exeDirPath=C:\Program Files (x86)\Assassins Creed Odyssey\WinTitle=ACOdysseyWinClass=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}elseIf errorlevel = 1{ while GetKeyState("l", "l") { SendEvent, {shift down} KeyWait, . SendEvent, {shift up} }}return} ;--------------------------The End-------------------------- Link to comment Share on other sites More sharing options...
Turul1989 Posted February 6, 2020 Author Share Posted February 6, 2020 I am trying to make it "L" key Link to comment Share on other sites More sharing options...
amoomani Posted April 5, 2021 Share Posted April 5, 2021 Hey man... it little late for this but here you go: $p::If Toggle:=!ToggleSendInput, {Blind}{w down}ElseSendInput, {w Up}Return (just change p to l and you're good to go) Link to comment Share on other sites More sharing options...
Recommended Posts