How to hold left button instead of click?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
zerox
Posts: 79
Joined: 15 Apr 2021, 13:01

How to hold left button instead of click?

Post by zerox » 17 Apr 2021, 04:18

Thx for any help!

Code: Select all

q::
send {Esc}
send {9}
sleep 500
send {Lbutton} 
User avatar
mikeyww
Posts: 26869
Joined: 09 Sep 2014, 18:38

Re: How to hold left button instead of click?

Post by mikeyww » 17 Apr 2021, 04:51

See Click, example #6.

Multi-line hotkey routines should end in Return.
zerox
Posts: 79
Joined: 15 Apr 2021, 13:01

Re: How to hold left button instead of click?

Post by zerox » 17 Apr 2021, 06:36

I want this command when i hold "q", so until release this key.
User avatar
mikeyww
Posts: 26869
Joined: 09 Sep 2014, 18:38

Re: How to hold left button instead of click?

Post by mikeyww » 17 Apr 2021, 06:48

Code: Select all

q::
Send {Esc}9
Sleep, 500
Click, Down
KeyWait, q
Click, Up
Return
Post Reply

Return to “Ask for Help (v1)”