glawrie Posted March 25, 2021 Share Posted March 25, 2021 I use a keyboard that for reasons unknown is unable to send the media key codes successfully to macOS - hitting play/pause works to play/pause the currently selected media app, but hitting "next" or "prev" media keys does nothing. If I simulate these keypresses using the macos "keyboard viewer" app then the media apps all respond correctly - but opening the keyboard viewer simply to skip a track is tedious, and I don't have the screen space free to leave the viewer visible all the time. My keyboard provider (logitech) is not so far able to rectify the issue - so while I wait I thought maybe I could use Alfred to send the appropriate media key presses to the macos system in response to a command. Unfortunately the mini-player in Alfred is tied to the Music app and I'm using something else. Is there a way to get Alfred to do this? Thanks in advance for any help. Link to comment
deanishe Posted March 25, 2021 Share Posted March 25, 2021 27 minutes ago, glawrie said: Is there a way to get Alfred to do this? This Python script can simulate media key presses. Link to comment
glawrie Posted March 25, 2021 Author Share Posted March 25, 2021 14 minutes ago, deanishe said: This Python script can simulate media key presses. Thank you! I'll see if I can patch it into a workflow 😬 Link to comment
mikedvzo Posted March 23, 2022 Share Posted March 23, 2022 This no longer works and you get an error message: "No module named Quartz" even after a "pip install pyobjc-framework-Quartzz". I ma not a programmer so excuse my ignorance. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now