Page 1 of 1

csgo: script that detects mouse movements ?

Posted: 25 Nov 2019, 21:17
by Sirutcra
I was wondering about a script for csgo. A script that detects mouse movements and when my mouse is moving right it will press d and when left a.

[Mod edit: Provisional topic name added. Feel free to edit it, Sirutcra.]

Re: csgo: script that detects mouse movements ?

Posted: 01 Dec 2019, 03:02
by Rohwedder
Hallo,
only tested with Notepad, try:

Code: Select all

#Persistent
MouseGetPos, xOld
SetTimer, Mouse, 200
Mouse:
MouseGetPos, x
Switch
{
	Case x > xOld : Send, d
	Case x < xOld : Send, a
}
xOld := x
Return
Autohotkey v1.1.31+

Re: csgo: script that detects mouse movements ?

Posted: 05 Dec 2019, 16:06
by Sid4G
This will just spam buttons, you need a few rules when to hold/release keys.