dumbeau / AutoHotPie

Radial menus in Windows, aka PIE MENYOOS!
MIT License
340 stars 18 forks source link

Assign scroll up/down action when hover #22

Open encart opened 2 years ago

encart commented 2 years ago

Hi. Thank you for your work. The program is great. I have a problem that I am unable to solve. I'm trying to assign a menu trigger to a pen button. I have read your directions for assigning as a 4 or 5 button, but unfortunately I do not have such an option on the Huion tablet. Is there a workaround? And one more suggestion. In the case of a mouse, it would be nice to use a roll. E.g . In the case of a graphics program, if you hover the cursor over a specific menu item (e.g. Stroke), moving the roll up and down will increase and decrease the stroke width. Ability to assign a shortcut for the up and down scroll.

dumbeau commented 2 years ago

I'm trying to assign a menu trigger to a pen button.

Unfortunately I don't have a Huion tablet to play around with, but here's some options:

  1. You could set a pen button to Middle Mouse Button if you're not using it for anything, you can also set pie menus to things like Ctrl+MMB if you're okay with using a modifier key.
  2. Set the keystroke of the pen button to something like F13 or some key you never use. You may have to use the 'Hover over all selections' launch mode, if the huion software doesn't send the key-up command when the pen button is released. This mode was made to work around this problem.

In the case of a mouse, it would be nice to use a roll.

This may be better solved by a standalone AHK script as opposed to pie menus. Hovering over a slice and using scroll to interact with it would need some visual cue to signify that the slice is only interactable by scrolling, and it would only work with launch modes that allow hovering. This may be a good idea, as I find myself remapping my scroll wheel with modifier buttons anyway. Not to mention like a quarter of the AHK subreddit posts are 'how do I remap scroll wheel'. I'll play around with this, I'm open to ideas here.

dumbeau commented 2 years ago

Maybe it could be function instead, like a 'Scroll Wheel Control' function? So you select the function and then scrolling would send whatever user-remapped keys until you do something to revert the scroll wheel function (like move the mouse a certain distance or click). This avoids complicating the UI of the pie menu, and works within the current system. The means of reverting the scroll functionality feels a little jank, not really sure what would be best here.

dumbeau commented 2 years ago

Posted a feature request for 4th and 5th click to be added to Huion tablets: https://support.huion.com/en/support/discussions/topics/44001019957

If you wanna give that a bump, it might help.