AutoClicker Holding Down Left Click AND a Toggle Button

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

Re: AutoClicker Holding Down Left Click AND a Toggle Button

Post by Rohwedder » 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: 221
Joined: 20 Jan 2023, 18:20

Re: AutoClicker Holding Down Left Click AND a Toggle Button

Post by DuckingQuack » 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

Post by v1era » 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: 17404
Joined: 21 Dec 2014, 02:44

Re: AutoClicker Holding Down Left Click AND a Toggle Button

Post by boiler » 22 Jun 2023, 08:49

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

Re: AutoClicker Holding Down Left Click AND a Toggle Button

Post by Rohwedder » 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

Post by Dober » 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.
aoe
Posts: 2
Joined: 11 Jun 2024, 13:27

Re: AutoClicker Holding Down Left Click AND a Toggle Button

Post by aoe » 11 Jun 2024, 13:34

@Rohwedder


Can you tell me where the error is and give me a normal ready-made clicker?

Code: Select all

MButton::Suspend
*LButton::
Loop
{
SetMouseDelay 30
Click
SetMouseDelay 35
Click
SetMouseDelay 25
Click
If (GetKeyState("LButton", "P")=0)
Break
}
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code!]
User avatar
DuckingQuack
Posts: 221
Joined: 20 Jan 2023, 18:20

Re: AutoClicker Holding Down Left Click AND a Toggle Button

Post by DuckingQuack » 12 Jun 2024, 10:04

@aoe
More information regarding your expected result of this script and the actual result of this script would be beneficial.
Alternatively, as far as the “ready-made” clicker; is one of the many listed on the forums unable to meet your needs? There is one in the second or third post in the topic that roh made that works.
Best of Luck,
The Duck
aoe
Posts: 2
Joined: 11 Jun 2024, 13:27

Re: AutoClicker Holding Down Left Click AND a Toggle Button

Post by aoe » 13 Jun 2024, 16:10

@DuckingQuack
in these clickers, when you hold down shift or control, it stops working
User avatar
DuckingQuack
Posts: 221
Joined: 20 Jan 2023, 18:20

Re: AutoClicker Holding Down Left Click AND a Toggle Button

Post by DuckingQuack » 14 Jun 2024, 06:14

EDIT: Thank you, boiler, I forgot this was the V1 side of the forum. My advice is not valid.

@aoe
Thank you for your response; in that case, i believe you were on the right track to add the asterisk (*). But you will still need the dollar sign ($). So it should have both like: “*$LButton::”
I hope this helps.
Last edited by DuckingQuack on 14 Jun 2024, 07:46, edited 1 time in total.
Best of Luck,
The Duck
User avatar
boiler
Posts: 17404
Joined: 21 Dec 2014, 02:44

Re: AutoClicker Holding Down Left Click AND a Toggle Button

Post by boiler » 14 Jun 2024, 07:40

The $ prefix has no effect on mouse hotkeys, so it would not be needed here. A virtual mouse click cannot trigger a mouse hotkey.
Post Reply

Return to “Gaming Help (v1)”