PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

[Mouse Jump] Allow binding to middle mouse button

Open Jelle-SamsonIT opened this issue 2 years ago • 3 comments

Description of the new feature / enhancement

I was kind of excited about the new mouse jump feature only to find out i'd still need to bind it to a keyboard shortcut.

Proposal:

Allow binding mouse jump action to things like mouse wheel click so you don't have to move your hands to your keyboard to jump navigate.

Scenario when this would be used?

I'm a left handed mouse user so I don't have a hand free for a windows key shortcut.

Supporting information

No response

Jelle-SamsonIT avatar Mar 03 '23 10:03 Jelle-SamsonIT

I think all the PowerToys utilities are based on keyboard shortcuts and there's no options to associate specific mouse buttons, but what you can potentially do (and it's what I do here) is use your mouse manufacturer's utility software to map the mouse button to send that keyboard combination.

For example I use a Logitech mouse and I'm using the Logitech "SetPoint" software to bind the extra "back" button to send the Mouse Jump keystroke:

image

I've changed the default keystroke in PowerToys for the Mouse Jump binding to CTRL+ALT+SHIFT+F which is what you see in the screenshot, so when I click the side button, SetPoint sees that and sends a CTRL+ALT+SHIFT+F keystroke which PowerToys catches and activates Mouse Jump.

Note - there's a couple of issues with SetPoint specifically - I had to make it run automatically at startup myself, and I had to set Application Compatibility to Run As Administrator because it didn't seem to send the keystroke if some applications were active (e.g. Office apps) as a user.

Hope that helps.

mikeclayton avatar Mar 03 '23 10:03 mikeclayton

Unfortunately my sexy japanese trackball doesn't have these features. I can see how making the hooks programmatically could be somewhat challenging though. Thanks for the insights @mikeclayton

Jelle-SamsonIT avatar Mar 03 '23 12:03 Jelle-SamsonIT

:-(.

If you've got extra keys like mine on your keyboard like media "play / pause / mute" etc your keyboard software might let you at least make it a single keypress of one of those keys...

mikeclayton avatar Mar 03 '23 12:03 mikeclayton