Is there a way to make the middle mouse button mimic left click and drag by?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Raghava Doregowda
Posts: 130
Joined: 06 Nov 2022, 01:48

Is there a way to make the middle mouse button mimic left click and drag by?

Post by Raghava Doregowda » 03 Feb 2023, 09:00

In my video software I've to left click and drag clips across the timeline by left click and drag (Just like in My computer to sort files we drag and drop). I want to make it so that If I hit the middle mouse button and release it, the "left click and drag" for the particular clip/file is activated and I can move it across the timeline. When I want to confirm I can hit the middle mouse button and the "left click and drag" sequence gets completed. Anyone can fill in on this?
And also is it possible to do the exact same event by "holding down" the middle mouse button and drag to carry out left click and drag? That would also be appreciated.

Rohwedder
Posts: 7555
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Is there a way to make the middle mouse button mimic left click and drag by?

Post by Rohwedder » 03 Feb 2023, 12:07

Hallo,
perhaps:

Code: Select all

MButton::
Click 2 ;or without the 2 ?
Sleep, 500
Click Down
KeyWait, MButton
Click Up
Return

Raghava Doregowda
Posts: 130
Joined: 06 Nov 2022, 01:48

Re: Is there a way to make the middle mouse button mimic left click and drag by?

Post by Raghava Doregowda » 03 Feb 2023, 13:04

Middle button is really weird. It releases itself and thereby keywait doesn't work as expected. But it's so conveniently located that it would come to use in many scenarios as a hotkey

Post Reply

Return to “Ask for Help (v1)”