Emulating Middle Mouse Dragging

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
moramish
Posts: 1
Joined: 06 May 2021, 01:24

Emulating Middle Mouse Dragging

06 May 2021, 01:57

Hey, so I'm trying to emulate middle mouse dragging using shift and left (or right) click on my laptop.
Ideally the script would hold down middle mouse button while both shift and left click are being held down allowing me to middle mouse drag on a touchpad.
I have found some older examples of how to do this but none seem to work, I'm not sure if this is because some of the codes are outdated or maybe because I'm using a laptop?

Any help would be greatly appreciated, thanks in advance!
User avatar
mikeyww
Posts: 26882
Joined: 09 Sep 2014, 18:38

Re: Emulating Middle Mouse Dragging

06 May 2021, 05:04

Code: Select all

F3::
SoundBeep, 1500
Send {Shift down}{LButton down}{MButton down}
KeyWait, F3
Send {MButton up}{LButton up}{Shift up}
SoundBeep, 1000
Return
#If GetKeyState("F3")
+F3::Return
#If

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: aitaixy, Google [Bot], Nerafius, RandomBoy and 194 guests