Page 1 of 1

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

Posted: 03 Feb 2023, 09:00
by Raghava Doregowda
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.

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

Posted: 03 Feb 2023, 12:07
by Rohwedder
Hallo,
perhaps:

Code: Select all

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

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

Posted: 03 Feb 2023, 13:04
by Raghava Doregowda
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