Volume Control?

Hi, not sure if this is the right place for this post but could someone please tell me if it is possible to control macOS volume by using a library with either a Leonardo or Pro Micro.

If so, which library is required?

Thank you all in advance.

https://docs.arduino.cc/language-reference/en/functions/usb/Keyboard/

At (or near) the top of each forum category there is a sticky post which explains the intended purpose of that category.

Your question does not relate to any particular version of the IDE, so it wasn't the right place to post.

I will move your topic for you.

I am a Mac user. I need some context here, why do this when the Mac has a volume control already?

I'm making my own MIDI controller and want a potentiometer to control system volume, so I don't need to use any keyboard shortcuts etc.

I can't seem to find any definitive info on whether this is possible using just a library. I have found plenty of Python scripts which contact the Arduino to accomplish this, and also options to use some kind of macOS app which can read scan codes sent from the Arduino - but nothing library specific for macOS.

Thanks.

Sorry, that sonds like a foreign language to me so I will mute. Good luck.

Did you try emulating the keyboard as suggested in post #2 by @DaveX ?

Oh, I see that that library does not do multimedia keys:

Maybe a richer library like:

Hi,
Thanks - yes I already looked at the Nicohood HID-Project library, but yet again, no info on whether it works on macOS, and I am not in a position to test it at the moment.

Odd time to post then isn't it? Because you can provide no feedback on suggestions.

Anyway have you seen this link on how to make the Mac do things.

Automator for the Mac

Keyboards work on MacOS, so if you make an automated keyboard out of a Leonardo, it should work on MacOS.

I just tested a Logitech Internet 350 keyboard and found that its volume controls worked on my MacOS.

@Grumpy Mike - I like to use my time wisely, therefore whenever I am away, I use that time to look into various things. I will obviously report back regarding suggestions at the first opportunity :slight_smile:

Automator seems to be taking a back stage to the shortcuts app, plus, I would prefer to do it all through the Arduino via a library.

Thanks for the suggestion - much appreciated.

Thanks Dave, I am looking into all of the suggestions here and eventually report back with my findings and the solution for others to also benefit from.