Send Ctrl + LButton

Get help with using AutoHotkey and its commands and hotkeys
DavidP
Posts: 41
Joined: 10 Aug 2014, 07:31

Send Ctrl + LButton

25 Nov 2018, 12:38

Hi forum,

This works:

Code: Select all

MButton::^LButton

While this doesn't:

Code: Select all

MButton:
Send, ^LButton
Why is that so, i.e. why is the 2nd example not working?
swagfag
Posts: 2902
Joined: 11 Jan 2017, 17:59

Re: Send Ctrl + LButton

25 Nov 2018, 16:03

MButton: this is a label
MButton:: this is a hotkey
Pepineros
Posts: 15
Joined: 16 Apr 2018, 17:26
Location: Ireland

Re: Send Ctrl + LButton

25 Nov 2018, 16:37

If you say

Code: Select all

Mbutton::
send, ^Lbutton
return
or, more ridiculously

Code: Select all

Mbutton:
send, ^Lbutton
return

F1::gosub Mbutton
will bind the F1 key to trigger the label called "Mbutton" and send ctrl + left mouse button.
DavidP
Posts: 41
Joined: 10 Aug 2014, 07:31

Re: Send Ctrl + LButton

17 Jan 2019, 12:49

Thanks guys.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], chngrcn, Google [Bot], pf_moore, rspai, taylope1, yjs778 and 41 guests