0

I have a Sierra mac with a MS Natural Key 4000 keyboard. It's got a bunch of special keys that I'd like to do stuff with. Out of the box, only volume up/down/mute and play/pause work do anything.

I tried using BeardedSpice to bind these keys. It didn't respond when I hit them. Karabiner-EventView wasn't any better - I could see other keys being typed, but these ones didn't trigger anything.

4
  • Grab Key Codes from the App Store & make sure they even generate a code. If not, you're out of luck.
    – Tetsujin
    Commented Apr 11, 2017 at 7:44
  • @Tetsujin seriously? No key code = no other options? This OS is so different than linux...
    – valadil
    Commented Apr 11, 2017 at 22:25
  • Well, if it doesn't actually supply a key code, there's nothing to translate. media keys get intercepted before they reach the OS, so the OS needs to know what to do with them. Presumably as it's a non-Apple keyboard it doesn't have Mac drivers.
    – Tetsujin
    Commented Apr 12, 2017 at 6:18
  • Makes sense. I just figured something would come out of the keyboard that I could translate into a media key. Feel free to promote your comment to an answer and I'll accept it.
    – valadil
    Commented Apr 12, 2017 at 13:15

2 Answers 2

2

Got it! USB overdrive heard the keys and let me map them to arbitrary osascript. http://www.usboverdrive.com/USBOverdrive/News.html

1
  • Glad you got it. I would have mentioned USB Overdrive, but I didn't realise it handled keyboards, I thought it was only mice.
    – Tetsujin
    Commented Apr 15, 2017 at 10:35
0

Media keys seem to be intercepted below the OS level - I'm not sure how so was waiting to see if anyone had a better answer...

If an app such as Key Codes cannot see the key-presses, then that makes it much harder to intercept & translate.

Potentially an app like Karabiner might be able to do it, however it has problems with Sierra at the moment.

1
  • So here's a weird observation. Mute and volume keys give me mute, volume_decrement, and volume_increment in Karabiner event viewer. Play/pause shows nothing. But it still toggles playback.
    – valadil
    Commented Apr 14, 2017 at 23:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .