New User Help with Control + Click

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Doc16743
Posts: 7
Joined: 18 Jul 2018, 12:55

New User Help with Control + Click

18 Jul 2018, 13:28

Greetings to the group! I've been through the beginner's tutorial and have searched the forum but having a hard time getting a basic .ahk to work.

I'm trying to get an end result of the combination "Control + Left Mouse Click" to happen when I click my mouse button 5. I know I can get fancy and select the actual program this happens in, and even the exact screen position the cursor is in when it happens. The fancy stuff will come (I hope!) with time and practice.

I may be simply over-thinking this, but as simple as it is, I haven't been able to get it to work.

Any help would be greatly appreciated!

Thanks
Doc
MannyKSoSo
Posts: 440
Joined: 28 Apr 2018, 21:59

Re: New User Help with Control + Click

18 Jul 2018, 13:33

First is the Mouse Button 5 found here https://autohotkey.com/docs/KeyList.htm
Next is the Send command https://autohotkey.com/docs/commands/Send.htm

Code: Select all

XButton2:: Send ^{Click}
Doc16743
Posts: 7
Joined: 18 Jul 2018, 12:55

Re: New User Help with Control + Click

18 Jul 2018, 13:42

I was right - I was trying to over-engineer it! I had tried XButton, but apparently not in the correct context.

This gives me something to start building on!

Thanks!
MannyKSoSo
Posts: 440
Joined: 28 Apr 2018, 21:59

Re: New User Help with Control + Click

18 Jul 2018, 13:45

Yup, and there are a few ways you could do it, but the way I showed it was the normal way to do it.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], ShatterCoder and 212 guests