Hello everyone
I would appreciate help with this:
w::ControlClick, x10354 y568
I want to hold that place with control click as long as I hold ''w" button on keyboard.
I know there is D command, but can't find a way to implement that.
Hope that somebody can help me.
Thank You
Press & Hold ControlClick Topic is solved
-
- Posts: 21
- Joined: 10 Oct 2020, 12:32
Re: Press & Hold ControlClick Topic is solved
Code: Select all
w::
SoundBeep, 1500, 20
ControlClick, x10354 y568,,,,, D ; Hold the mouse button
KeyWait, %A_ThisHotkey% ; Wait for the key to be released
SoundBeep, 1000, 20
ControlClick,,,,,, U ; Release the mouse button
Return
-
- Posts: 21
- Joined: 10 Oct 2020, 12:32
Re: Press & Hold ControlClick
mikeyww wrote: ↑29 Oct 2020, 06:49Some programs might not respond to this.Code: Select all
w:: SoundBeep, 1500, 20 ControlClick, x10354 y568,,,,, D ; Hold the mouse button KeyWait, %A_ThisHotkey% ; Wait for the key to be released SoundBeep, 1000, 20 ControlClick,,,,,, U ; Release the mouse button Return
I strongly appreciate Your response and it works very well. That's the second time You helped me and I am grateful for that
All good for You