NickeManarin / ScreenToGif

🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.
http://www.screentogif.com
Microsoft Public License
23.83k stars 2.19k forks source link

[Feature Request] Highlight mouse buttons 4 and 5 #1292

Closed muzikbike closed 7 months ago

muzikbike commented 7 months ago

Is your feature request related to a problem? Please describe. Currently, left clicks are highlighted in yellow, right clicks in red and middle clicks in cyan. However, using the fourth and fifth mouse buttons does not cause any colored circles to appear, despite these also being mouse buttons.

To this day, Windows does not account for the existence of mouse buttons 6 and above (unlike Mac or Linux), and since this utility appears to be designed only for Windows we don't need to account for any higher buttons at this point.

Describe the solution you'd like Add some colored circles to indicate when the fourth or fifth buttons are pressed, like how #374 added support for the right click.

Describe alternatives you've considered Coping with not having them show up at all? That sounds a bit depressing.

Additional context All five mouse buttons are used here, in order: left, right, left, middle, fourth, fifth. The last two aren't visually shown, hence the long period of nothing happening at the end of this gif. mousebuttonsdemo

pawlos commented 7 months ago

Not sure if those are 4th & 5th button but there's already some info in the application about FirstExtra & SecondExtra mouse button. They just don't appear on the recording with visual indicator. I'll see if that's possible to expose.

muzikbike commented 7 months ago

I wonder if visual indicators for scrolling up and down would also be relevant.

pawlos commented 7 months ago

Well, there's also some info about scroll delta, but not sure how that would be represented on the recording

NickeManarin commented 7 months ago

Yes, it's possible to update the current code to add support for the extra buttons. I just did that, but I can't test it properly as my mouse doesn't have extra buttons.

image