infinite left click loop

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
plautus
Posts: 89
Joined: 20 Aug 2020, 12:24

infinite left click loop

18 May 2021, 01:55

hi, im trying to make a left mouse click either on hold or looped.

It also needs to be disabled wiht another key.

How do i do that?
Rohwedder
Posts: 7623
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: infinite left click loop

18 May 2021, 03:15

Hallo,
try:

Code: Select all

;while key Q hold, every 100 ms
q::
While, GetKeyState("q","P")
{
	Click
	Sleep, 100
}
Return

;On/Off with key W, every 100 ms
w::SetTimer, w Up,% (w:=!w)?100:"Off"
w Up::Click,,,%w%

;On/Off with left Shift: While LButton hold, every 100 ms
#IF GetKeyState("LShift","T")
*LButton::SetTimer, :X:☝, 100
:X:☝::Click
*LButton Up::SetTimer, :X:☝, Off
#IF
plautus
Posts: 89
Joined: 20 Aug 2020, 12:24

Re: infinite left click loop

18 May 2021, 05:34

hello, it should be 1 ckick, thjen activates hold mouse button, and cancel it wiht another button.
Rohwedder
Posts: 7623
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: infinite left click loop

18 May 2021, 06:03

Then perhaps:

Code: Select all

*q::Send, {Blind}{Click}{LButton Down}
	;Q key: 1 click, then activates hold mouse button down
*w::Click Up
	;W key: release left mouse button

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, Holarctic, Rohwedder and 202 guests