Jitter autoclicker

Ask gaming related questions
gbaranski
Posts: 2
Joined: 20 Oct 2019, 10:16
GitHub: gbaranski

Jitter autoclicker

20 Oct 2019, 10:26

I want to make macro, which turns on triple mouse click or on hotkey, and also turn off on triple mouse click or hotkey. but works only when you're holding LPM, also it jitters between first variable and second one. at the moment i got something like this

Code: Select all

Numpad3::Hotkey, *LButton, Toggle
*LButton::
Send,{LButton}
While GetKeyState("LButton", "P")
{
Send,{LButton}
Random, delay, %Min%, %Max%
Sleep %delay%
}
return
}
Rohwedder
Posts: 2309
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Jitter autoclicker

23 Oct 2019, 01:23

Hallo,
I gave min, max values and added test tooltips. Here it runs.

Code: Select all

Min := 100, Max := 300
Numpad3::Hotkey, *LButton, Toggle
*LButton::
Send,{LButton}
While GetKeyState("LButton", "P")
{
	ToolTip,% A_TickCount " Line: " A_LineNumber
	Send,{LButton}
	Random, delay, %Min%, %Max%
	Sleep %delay%
}
ToolTip
return

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 53 guests