I want to intercept function-key strokes in MacOS, not Fx keys, but specifically Volume Up/Down and Mute.
Obviously, this should be done in a global way, not only when my program is frontmost.
I read this can be achieved using a CGEventTap, but it requires either root priviledges or assistive devices access to be enabled for the application.
VLC does this with Back/Playback/Next function-keys, if it is playing it completely overrides iTunes control. And it does it without being root or even having assistive devices access enabled.
Any idea?