Strafe Script for CS:GO bhop and surf

Ask gaming related questions (AHK v1.1 and older)
[Jeremy]
Posts: 3
Joined: 12 Mar 2018, 11:30

Strafe Script for CS:GO bhop and surf

Post by [Jeremy] » 12 Mar 2018, 14:09

I need someone to make a script that does the following:

When space bar is being held down:
-Holds down "A" when the mouse is moving left
-Holds down "D" when the mouse is moving right

-Has a toggle button on/off set to F1


Thank you!

User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: Strafe Script for CS:GO bhop and surf

Post by Nwb » 13 Mar 2018, 07:05

Let me know if you want it to work in a different way or if you want to add something. F1 to toggle suspend and F2 to exit script. Good luck! ;)

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
 #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#MaxThreadsPerHotkey 2
Toggle := 0

$*Space::
MouseGetPos, X
Loop {
	MouseGetPos, Xpos
If (Xpos < X) {                  ; if moved left
	Send, {a down}
	X := Xpos
}
else
	Send, {a up}

If (Xpos > X) {                  ; if moved right
	Send, {d down}
	X := Xpos
}
else
	Send, {d up}

If toggle
	break
}
return

$*Space UP:: Toggle := !Toggle

F1:: Suspend, Toggle
F2:: ExitApp
I am your average ahk newbie. Just.. a tat more cute. ;)

silakkapulla
Posts: 1
Joined: 21 Feb 2023, 07:47

Re: Strafe Script for CS:GO bhop and surf

Post by silakkapulla » 21 Feb 2023, 07:51

does anyone have a good working autostrafe because I can't find anything/anyone to help me with it:( So can you please help me to get autostrafe!
I would like autostrafe codes

LaoTzu
Posts: 1
Joined: 24 Mar 2023, 20:56

Re: Strafe Script for CS:GO bhop and surf

Post by LaoTzu » 24 Mar 2023, 20:59

Nwb or anyone, can you let me know where exactly the code is to be placed. Thanks!

Post Reply

Return to “Gaming Help (v1)”