Page 1 of 1

Strafe Script

Posted: 18 Mar 2017, 01:03
by [Ice]
Hi.

I'm new to ahk and coding and general and kind of lost on making my own script. I was wondering if there is a script where when I press a it moves my mouse left and when I let go of a it, my mouse stops going left. Same thing with d just going to the right. If there is thank you for your help.

Re: Strafe Script

Posted: 18 Mar 2017, 06:54
by LydiaRose
So when you press the "A" key, it moves your mouse to the left; and when you press the "D" key, it moves your mouse to the right?

Re: Strafe Script

Posted: 18 Mar 2017, 08:14
by evilC
What do you want it for? A mouse-look FPS game, or a game where you have a mouse cursor?

The code would be quite different for each of these scenarios.

Re: Strafe Script

Posted: 18 Mar 2017, 15:27
by [Ice]
evilC wrote:What do you want it for? A mouse-look FPS game, or a game where you have a mouse cursor?

The code would be quite different for each of these scenarios.

FPS game. CSGO to be exact.

Re: Strafe Script

Posted: 18 Mar 2017, 15:56
by evilC
From what I understand, CSGO is fairly uncommon in the fact that it responds to either cursor movement or "delta" input, so anything should work.

Re: Strafe Script

Posted: 19 Mar 2017, 04:33
by [Ice]
evilC wrote:From what I understand, CSGO is fairly uncommon in the fact that it responds to either cursor movement or "delta" input, so anything should work.
I've seen bhop scripts that work like this but can you help me with some of the commands since I have no idea what to do?

Re: Strafe Script

Posted: 19 Mar 2017, 08:49
by evilC
No.
So sick of all these CSGO cheats stinking up this forum, in fact I would like to see them banned.

Re: Strafe Script

Posted: 20 Mar 2017, 10:45
by bluce
What you are looking for is a reverse AutoStrafe/StrafeHack script. I'll help you. What you can do is use the mouseXY function when pressing A and D to move left and right, your script may look something like this

Code: Select all

mouseXY(x,y)
{
DllCall("mouse_event",short,1,short,x,short,y,short,0,short,0)
}
*~$A::
while GetKeyState("A","P")
{
     mouseXY(-10,0) ;Change this value to your preference
     Sleep 5 ;Change this value to your preference
}
return
*~$D::
while GetKeyState("D","P")
{
     mouseXY(10,0) ;Change this value to your preference
     Sleep 5 ;Change this value to your preference
}
return
I can hook you up with a normal AutoStrafe script (holds A when you look left and holds D when you look right) or any other CSGO script you may need, just PM me ;)

Re: Strafe Script

Posted: 20 Mar 2017, 13:15
by c0dycode
Isn't this basically a turn bind people often use for surfing + moving left or right?

If that's what you basically want, you can do this with ingame cvars. I've stopped playing cs a few months ago but it should probably be something like

Code: Select all

alias "+strafeleft" "+left; +moveleft"
alias "-strafeleft" "-left; -moveleft"

alias "+straferight" "+right; +moveright"
alias "-straferight" "-right; -moveright"
put these in your autoexec.cfg or something and then bind this to your preferred key.

For example:

Code: Select all

bind "a" "+strafeleft"
EDIT: Fixed a typo. Also if you only want to turn just use "bind "a" "+left" for example.

Re: Strafe Script

Posted: 20 Mar 2017, 21:43
by [Ice]
bluce wrote:What you are looking for is a reverse AutoStrafe/StrafeHack script. I'll help you. What you can do is use the mouseXY function when pressing A and D to move left and right, your script may look something like this

Code: Select all

mouseXY(x,y)
{
DllCall("mouse_event",short,1,short,x,short,y,short,0,short,0)
}
*~$A::
while GetKeyState("A","P")
{
     mouseXY(-10,0) ;Change this value to your preference
     Sleep 5 ;Change this value to your preference
}
return
*~$D::
while GetKeyState("D","P")
{
     mouseXY(10,0) ;Change this value to your preference
     Sleep 5 ;Change this value to your preference
}
return
I can hook you up with a normal AutoStrafe script (holds A when you look left and holds D when you look right) or any other CSGO script you may need, just PM me ;)
Thank you. Just testing some things out to see if its what I want. Im going to test this now.

Re: Strafe Script

Posted: 07 Feb 2018, 06:57
by ryzelux
bluce wrote:What you are looking for is a reverse AutoStrafe/StrafeHack script. I'll help you. What you can do is use the mouseXY function when pressing A and D to move left and right, your script may look something like this

Code: Select all

mouseXY(x,y)
{
DllCall("mouse_event",short,1,short,x,short,y,short,0,short,0)
}
*~$A::
while GetKeyState("A","P")
{
     mouseXY(-10,0) ;Change this value to your preference
     Sleep 5 ;Change this value to your preference
}
return
*~$D::
while GetKeyState("D","P")
{
     mouseXY(10,0) ;Change this value to your preference
     Sleep 5 ;Change this value to your preference
}
return
I can hook you up with a normal AutoStrafe script (holds A when you look left and holds D when you look right) or any other CSGO script you may need, just PM me ;)




Bro this is the best thing iv ever tried! way better than all those auto exec scripts thanks for this!! woah didn't think id find anything as good as this!

Re: Strafe Script

Posted: 10 Feb 2018, 03:45
by Guest
Hi, i would like to know how to do for activate and unactivate the script plz

[code=mouseXY(x,y)
{
DllCall("mouse_event",short,1,short,x,short,y,short,0,short,0)
}
*~$A::
while GetKeyState("A","P")
{
mouseXY(-20,0) ;Change this value to your preference
Sleep 5 ;Change this value to your preference
}
return
*~$D::
while GetKeyState("D","P")
{
mouseXY(20,0) ;Change this value to your preference
Sleep 5 ;Change this value to your preference
}
return file=strafe csgo.ahk][/code]

Re: Strafe Script

Posted: 05 Aug 2019, 16:08
by roydaniels
bluce wrote:
20 Mar 2017, 10:45
What you are looking for is a reverse AutoStrafe/StrafeHack script. I'll help you. What you can do is use the mouseXY function when pressing A and D to move left and right, your script may look something like this

Code: Select all

mouseXY(x,y)
{
DllCall("mouse_event",short,1,short,x,short,y,short,0,short,0)
}
*~$A::
while GetKeyState("A","P")
{
     mouseXY(-10,0) ;Change this value to your preference
     Sleep 5 ;Change this value to your preference
}
return
*~$D::
while GetKeyState("D","P")
{
     mouseXY(10,0) ;Change this value to your preference
     Sleep 5 ;Change this value to your preference
}
return
I can hook you up with a normal AutoStrafe script (holds A when you look left and holds D when you look right) or any other CSGO script you may need, just PM me ;)
Hi, I know it's been a long time, I tried to message you but it seems like I can't. I'm newly registered but I'm looking for exactly that "(holds A when you look left and holds D when you look right)".
There are many roaming around but they just don't seem to work, they spam "a" and "d" rather than holding. I don't know if that's a problem for you or so but I would appreciate it :)

Re: Strafe Script

Posted: 17 Apr 2020, 18:06
by Nathan818
bluce wrote:
20 Mar 2017, 10:45
What you are looking for is a reverse AutoStrafe/StrafeHack script. I'll help you. What you can do is use the mouseXY function when pressing A and D to move left and right, your script may look something like this

Code: Select all

mouseXY(x,y)
{
DllCall("mouse_event",short,1,short,x,short,y,short,0,short,0)
}
*~$A::
while GetKeyState("A","P")
{
     mouseXY(-10,0) ;Change this value to your preference
     Sleep 5 ;Change this value to your preference
}
return
*~$D::
while GetKeyState("D","P")
{
     mouseXY(10,0) ;Change this value to your preference
     Sleep 5 ;Change this value to your preference
}
return
I can hook you up with a normal AutoStrafe script (holds A when you look left and holds D when you look right) or any other CSGO script you may need, just PM me ;)
yo dude for some reason I cannot message u but can you PLEASE send me the regular autostrafe script? It is exactly what I need rn and I would greatly appreciate it.

Re: Strafe Script

Posted: 01 Jul 2020, 08:57
by TeLeSc0pIc
bluce wrote:
20 Mar 2017, 10:45
What you are looking for is a reverse AutoStrafe/StrafeHack script. I'll help you. What you can do is use the mouseXY function when pressing A and D to move left and right, your script may look something like this

Code: Select all

mouseXY(x,y)
{
DllCall("mouse_event",short,1,short,x,short,y,short,0,short,0)
}
*~$A::
while GetKeyState("A","P")
{
     mouseXY(-10,0) ;Change this value to your preference
     Sleep 5 ;Change this value to your preference
}
return
*~$D::
while GetKeyState("D","P")
{
     mouseXY(10,0) ;Change this value to your preference
     Sleep 5 ;Change this value to your preference
}
return
I can hook you up with a normal AutoStrafe script (holds A when you look left and holds D when you look right) or any other CSGO script you may need, just PM me ;)
i need t his