Jiggle mouse after clicking a button at x intervals for x seconds

Ask gaming related questions (AHK v1.1 and older)
mortez123
Posts: 1
Joined: 28 Jan 2022, 03:49

Jiggle mouse after clicking a button at x intervals for x seconds

Post by mortez123 » 28 Jan 2022, 04:03

I wanna jiggle my mouse after I click right mouse button, and I wanna do it every x intervals for 1 seconds, how can I do this with AHK?

Rohwedder
Posts: 7647
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Jiggle mouse after clicking a button at x intervals for x seconds

Post by Rohwedder » 28 Jan 2022, 04:31

Hallo,
perhaps:

Code: Select all

RButton::
X := 5
While, A_TimeSinceThisHotkey < 1000
	MouseMove, X:=-X, 0,, R
Return
Try to articulate your wishes more precisely!

Post Reply

Return to “Gaming Help (v1)”