Dragclick code

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Eevee
Posts: 2
Joined: 05 Dec 2021, 05:43

Dragclick code

Post by Eevee » 05 Dec 2021, 05:54

so i have a mouse which cannot dragclick so i tried to make a script that when you hold the primary mouse button(left on my computer)for 2 seconds it starts autoclicking until you leave the button i have been trying but i cannot find anything like my idea.

User avatar
mikeyww
Posts: 26602
Joined: 09 Sep 2014, 18:38

Re: Dragclick code

Post by mikeyww » 05 Dec 2021, 07:10

Welcome to AHK!

Code: Select all

~LButton::
KeyWait, LButton, T2
If ErrorLevel ; Held
 While GetKeyState("LButton", "P")
  Click
Return

Eevee
Posts: 2
Joined: 05 Dec 2021, 05:43

Re: Dragclick code

Post by Eevee » 06 Dec 2021, 03:25

Thanks!

Post Reply

Return to “Ask for Help (v1)”