hold M1 and autoclick

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
gustavo finger
Posts: 2
Joined: 29 May 2023, 15:04

hold M1 and autoclick

Post by gustavo finger » 08 Jun 2023, 08:48

hold M1 for 0.5 seconds and it autoclicks

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

Re: hold M1 and autoclick

Post by mikeyww » 08 Jun 2023, 09:00

Welcome to this AutoHotkey forum!

Perhaps:

Code: Select all

#Requires AutoHotkey v1.1.33

~MButton::
KeyWait MButton, T.5
If ErrorLevel  ; Held
 While GetKeyState("MButton", "P")
  Click M
Return

Post Reply

Return to “Ask for Help (v1)”