Closed nriley closed 4 years ago
You're welcome.
Please checkout 2020.04.20 release. You can assign media keys as hotkeys to actions in configuration file.
It this feature is not what you're looking for, message me so I reopen PR.
That's perfect as my current headset no longer sends the media keys (some things change in 4 years, but I am still using Pianobar on Windows :) Thank you.
This runs on a separate thread so there are potentially some synchronization concerns that I haven't addressed specifically (and I am not an experienced Windows developer, so I may have also messed up). It seems to work fine in my limited testing.
It doesn't seem like there is ever more than one 'app' but given it gets passed around everywhere and I couldn't figure out another way to pass it to the hook, I put it into TLS versus using a global.
Thanks for the Windows port!