How to get AHK to wait a few seconds then click mouse button?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
asdf322
Posts: 10
Joined: 01 Jul 2018, 13:09

How to get AHK to wait a few seconds then click mouse button?

Post by asdf322 » 21 Jul 2022, 13:26

I know Lbutton is mouse, but I want to make it so that whenever I click the physical mouse button, AHK waits three seconds and then inputs an additional left mouse click. How do I do this? Thank you.

User avatar
neovis
Posts: 34
Joined: 12 Jun 2022, 03:56
Location: Republic of Korea
Contact:

Re: How to get AHK to wait a few seconds then click mouse button?

Post by neovis » 21 Jul 2022, 14:11

Code: Select all

~LButton::SetTimer Click, -3000

Click:
MouseClick Left
return

Post Reply

Return to “Ask for Help (v1)”