macosui / macos_window_utils.dart

macos_window_utils is a Flutter package that provides a set of methods for modifying the NSWindow of a Flutter application on macOS.
https://pub.dev/packages/macos_window_utils
MIT License
49 stars 9 forks source link

global keyboard capture? (possible feature bounty) #1

Closed exts closed 1 year ago

exts commented 1 year ago

I've longed for an easy way to easily capture global keyboard hotkeys for apps like screen capture (think ShareX) etc... looking to start a bounty for this (not sure how, but definitely need this lol)

exts commented 1 year ago

Started a bounty for this, something I need not want lol. I may add more if there's some interest.

Adrian-Samoticha commented 1 year ago

I have not tried it out myself, but have you checked out the global_shortcuts package? It seems to be doing exactly what you're asking for.

exts commented 1 year ago

I have not tried it out myself, but have you checked out the global_shortcuts package? It seems to be doing exactly what you're asking for.

Looks like it's only for macos atm

Adrian-Samoticha commented 1 year ago

Looks like it's only for macos atm

Well, so is macos_window_utils (hence the name).

exts commented 1 year ago

I just noticed. Well, Guess I'm going to have to do somethibg with this bounty lol thanks for that repo link

Adrian-Samoticha commented 1 year ago

If you are fine with a solution that works on Windows as well, there is a tool called keyviz which visualizes your keystrokes in real-time. Perhaps you could check out how it does that. That said, I am not aware of any solution that works on Linux as well.

exts commented 1 year ago

I just found a new library actually https://pub.dev/packages/keyboard_event does exactly what I want :) I appreciate it, gonna try donating over that way. Gl w/ your project!

Adrian-Samoticha commented 1 year ago

I just checked and this is exactly the library that keyviz uses, so yeah. I hope that one works out for you. :)