Shift Left Mouse click to activate Left Mouse Click

Get help with using AutoHotkey and its commands and hotkeys
Emerogork
Posts: 25
Joined: 06 Apr 2015, 19:20

Shift Left Mouse click to activate Left Mouse Click

12 Aug 2015, 15:13

I would like to program the mouse clicks to activate only when the left shift key is pressed with it.

LShift with LeftMouseButton instead of just click left mouse button and
LShift with RightMouseButton instead of just click right mouse button.

I believe I saw how to do this but forgot where...
I wish I knew now half of what I thought I knew when I was a teenager.
danotto94
Posts: 14
Joined: 11 Aug 2015, 10:32

Re: Shift Left Mouse click to activate Left Mouse Click

12 Aug 2015, 17:36

Have you searched on (other) forums for answers that may help? I don't know the answer but just asking.
Emerogork
Posts: 25
Joined: 06 Apr 2015, 19:20

Re: Shift Left Mouse click to activate Left Mouse Click

12 Aug 2015, 17:52

Actually, it really doesn't have to be the Shift Key involved as I just found out that Shift-MouseClick is used as an operation in some software. It can be Numlock key/LMouseclick as I have defeated that key already.
I wish I knew now half of what I thought I knew when I was a teenager.
gilliduck
Posts: 265
Joined: 06 Oct 2014, 15:01

Re: Shift Left Mouse click to activate Left Mouse Click

13 Aug 2015, 05:36

Code: Select all

LButton::
	If not GetKeyState("ScrollLock")
		Return
	Send {LButton}
	Return


RButton::
	If not GetKeyState("ScrollLock")
		Return
	Send {RButton}
	Return

Return to “Ask For Help”

Who is online

Users browsing this forum: JoeWinograd, manehscripts, nu10e8368NrrfXGQKvwn, ToJaRedi and 70 guests