csgo: script that detects mouse movements ?

Ask gaming related questions (AHK v1.1 and older)
Sirutcra
Posts: 4
Joined: 21 Nov 2019, 21:20

csgo: script that detects mouse movements ?

25 Nov 2019, 21:17

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.]
Rohwedder
Posts: 7645
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: csgo: script that detects mouse movements ?

01 Dec 2019, 03:02

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+
Sid4G
Posts: 48
Joined: 02 Apr 2016, 19:11

Re: csgo: script that detects mouse movements ?

05 Dec 2019, 16:06

This will just spam buttons, you need a few rules when to hold/release keys.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: prototype_zero and 90 guests