Auto Clicker Topic is solved

Ask gaming related questions (AHK v1.1 and older)
RumTum
Posts: 4
Joined: 18 Feb 2021, 15:37

Re: Auto Clicker

Post by RumTum » 22 Feb 2021, 15:39

Mrcrazypants2 wrote:
25 Dec 2018, 19:26
just hit = to start or stop it

Code: Select all

Pause ON

loop
{
click
}

=::Pause
This wont work because it clicks too fast. You need a sleep function in the loop

JonesJ
Posts: 2
Joined: 12 May 2021, 16:47

Re: Auto Clicker

Post by JonesJ » 12 May 2021, 16:51

ButterZ wrote:
14 May 2020, 02:15
snnail wrote:
04 May 2020, 12:28
neomulemi6 wrote:
03 Jul 2016, 11:58
This will click 12 times/second, toggled on/off with ctrl + z.

Code: Select all

#MaxThreadsPerHotkey 3

^z::
Toggle := !Toggle
Loop
{
	If (!Toggle)
		Break
	Click
	Sleep 83 ; Make this number higher for slower clicks, lower for faster.
}
Return
NEw to this what should i do to change to right click?TIA
You would change "click" to what ever button you want instead-
so if i wanted to click A continuously would i just change click to A?

ButterZ
Posts: 7
Joined: 23 Feb 2019, 18:05

Re: Auto Clicker

Post by ButterZ » 25 Jun 2021, 20:38

JonesJ wrote:
12 May 2021, 16:51
ButterZ wrote:
14 May 2020, 02:15
snnail wrote:
04 May 2020, 12:28
neomulemi6 wrote:
03 Jul 2016, 11:58
This will click 12 times/second, toggled on/off with ctrl + z.

Code: Select all

#MaxThreadsPerHotkey 3

^z::
Toggle := !Toggle
Loop
{
	If (!Toggle)
		Break
	Click
	Sleep 83 ; Make this number higher for slower clicks, lower for faster.
}
Return
NEw to this what should i do to change to right click?TIA
You would change "click" to what ever button you want instead-
so if i wanted to click A continuously would i just change click to A?
You would change "Click" into "SendInput, a"

MahirDaiyan
Posts: 1
Joined: 31 Oct 2021, 04:23

Re: Auto Clicker

Post by MahirDaiyan » 31 Oct 2021, 04:44

Code: Select all

~LButton::
Loop
{
GetKeyState, LButtonState, LButton, P
if LButtonState = U

MouseClick, Left

Sleep 10

}
return
*F1::
Suspend
Pause, 1
return

*F2::
Suspend, 0
Pause, 0
return

*F4::
ExitApp
return
[Mod edit: [code][/code] tags added.]

This is a better code F1 to start and F2 to start again

tristan0011
Posts: 1
Joined: 16 Mar 2022, 20:04

Re: Auto Clicker

Post by tristan0011 » 16 Mar 2022, 20:18

please help me to create a hotkey code for my games, i need to use F1 for (skill) then click in center of screen one time then space for (teleport skill) then repeat from the top, unli skill and teleport, .but i need a key for activate this process, example ctrl+enter to activate those command and ctrl+enter to end command.
last favor, what is the 1st code to active the command while playing my games/application

lalakayn
Posts: 2
Joined: 05 Apr 2022, 21:59

Re: Auto Clicker

Post by lalakayn » 05 Apr 2022, 22:03

hi please help me out i need an autoclicker when i hold my right mouse button it click 20 cps (right click) and when i stop holding it doesnt click please i tried one but i want it to work for all games

lucasnathane222
Posts: 2
Joined: 10 Apr 2022, 19:19

Re: Auto Clicker

Post by lucasnathane222 » 10 Apr 2022, 19:23

You know you can search on sourceforge.net, but i'm working on an AHK script for that right now. It will be over 20 CPS, and easy to use. It takes a while for me, just started yesterday.

Pyrre
Posts: 8
Joined: 21 Apr 2022, 04:25

Re: Auto Clicker

Post by Pyrre » 23 Apr 2022, 20:37

I made an auto-clicker that toggles on and off with CTRL + Z for Minecraft, but you use it with your left and right mouse buttons, just hold down whichever button and it will spam it, I will post my entire Minecraft script, hopefully someone finds it useful :)

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
SetTitleMatchMode, 2
#MaxThreadsPerHotkey 3

MsgBox,, Keybinds!,
(
Ctrl + K = Shut down script

Ctrl + W = Auto run (Press CTRL again to run faster)

Ctrl + R = Hold down Right-Click (used for AFK fishing farm)

Ctrl + Z = Auto Click (This keybind toggles it On & Off, spam click by holding down either left or right click)
)


^K::ExitApp

^W::
IfWinActive, Minecraft
Sleep, 200
Send, {W Down}
return

^R::
IfWinActive, Minecraft
Send, {RButton Down}
return

^z::
Toggle := !Toggle
return

~LButton::
while GetKeyState("Lbutton", "P"){
	if (!Toggle)
		break
	IfWinNotActive, Minecraft
		break
	Click
	Sleep, 40
}
return

~RButton::
while GetKeyState("Rbutton", "P"){
	if (!Toggle)
		break
	IfWinNotActive, Minecraft
		break
	Click, whichbutton Right
	Sleep, 40
}
Return

zenghadai
Posts: 1
Joined: 27 Nov 2023, 16:27

Re: Auto Clicker

Post by zenghadai » 27 Nov 2023, 16:30

neomulemi6 wrote:
03 Jul 2016, 11:58
This will click 12 times/second, toggled on/off with ctrl + z.

Code: Select all

#MaxThreadsPerHotkey 3

^z::
Toggle := !Toggle
Loop
{
	If (!Toggle)
		Break
	Click
	Sleep 83 ; Make this number higher for slower clicks, lower for faster.
}
Return

Thank you very much from China, this function save my life! :dance: :bravo:

Post Reply

Return to “Gaming Help (v1)”