AutoClicker Holding Down Left Click AND a Toggle Button

Ask gaming related questions (AHK v1.1 and older)
Rohwedder
Posts: 7750
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: AutoClicker Holding Down Left Click AND a Toggle Button

23 Feb 2023, 06:50

Try:

Code: Select all

#NoEnv
SetBatchLines, -1
SetMouseDelay, -1
$LButton::
cps1 := A_TickCount//cps2:=1000/12
While, GetKeyState("LButton", "P")
	Click,% -cps1+cps1:=A_TickCount//cps2
Return
k::Suspend
User avatar
DuckingQuack
Posts: 219
Joined: 20 Jan 2023, 18:20

Re: AutoClicker Holding Down Left Click AND a Toggle Button

23 Feb 2023, 19:01

@Storm
Not exactly 12, but close... the formula you need is 1000/C= S
1000 is how many milliseconds per second
C will be number of clicks desired per second
S will be the number you use in the sleep line
Therefore 1000/12=83.3333
However, you cannot use the part beyond the decimal point, so you need to choose 83 or 84
1000/84=11.904 CPS
1000/83=12.048 CPS
Best of Luck,
The Duck
v1era
Posts: 1
Joined: 22 Jun 2023, 08:44

Re: AutoClicker Holding Down Left Click AND a Toggle Button

22 Jun 2023, 08:46

hello i know im late but how about right click

Code: Select all

$LButton::
Loop
{
if not GetKeyState("LButton", "P")
break
LButton
}
return
im using this and its for left click i want right click


[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
User avatar
boiler
Posts: 17334
Joined: 21 Dec 2014, 02:44

Re: AutoClicker Holding Down Left Click AND a Toggle Button

22 Jun 2023, 08:49

@v1era - Are you asking how to change your code to use RButton instead of LButton?
Rohwedder
Posts: 7750
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: AutoClicker Holding Down Left Click AND a Toggle Button

22 Jun 2023, 10:55

Or do you want to be able to quickly click both at the same time?:

Code: Select all

*LButton::
*RButton::
Loop {
	Click,% "Left  " L:=GetKeyState("LButton","P")
	Click,% "Right " R:=GetKeyState("RButton","P")
} Until, ! L Or R
Return
Dober
Posts: 1
Joined: 04 Mar 2024, 04:27

Re: AutoClicker Holding Down Left Click AND a Toggle Button

04 Mar 2024, 04:55

Hello
I need help on this one like while While holding my left click it auto click while I don't want the screen to drag.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Rohwedder and 40 guests