Using LShift + LButton for RButton as well as be able to drag

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
Assquatch23
Posts: 1
Joined: 20 Apr 2024, 00:32

Using LShift + LButton for RButton as well as be able to drag

20 Apr 2024, 00:36

Code: Select all

#Requires AutoHotkey v2.0
+LButton:: {
Send "{RButton down}"
sleep 100
Keywait "{RButton}"
Send "{RButton up}"
}

This is my original code, but "Keywait "{RButton}"" fails saying invalid parameter leaving my left click stuck as right-click. I feel like I am so close yet so far. Any help is appreciated

[Mod edit: Added [code][/code] tags. Please use them yourself when posting code!]
gregster
Posts: 9080
Joined: 30 Sep 2013, 06:48

Re: Using LShift + LButton for RButton as well as be able to drag

20 Apr 2024, 00:48

KeyWait doesn't use braces.
(Send needs to use that syntax because it's also able to send multiple keys in a row and without braces you would have ambiguity; this doesn't apply to KeyWait which only accepts one single key.)

PS: Please use code tags, next time. Thank you!

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: mikeyww and 16 guests