I don't use the CAPS LOCK functionality in OS X, so I disabled the key under the system preferences. Now that key is completely useless to me - ok, I could map the CMD/CTRL/ALT key to that key, but I already got keys for that…

So what I have in mind is to use the LED on the key (I use the recent Apple wireless keyboard) to annouce if I've got mails waiting… something like that. Is it possible to control the LED directly? Controlling it via an objective-c cocoa app is okay, I'll write that app by myself, but until now, I can find anything useful from Apples cocoa documentation.

link|improve this question
I guess that's more or less hardwired into the keyboard firmware, so you'd have to crack that first. – slhck May 18 '11 at 7:49
feedback

1 Answer

up vote 1 down vote accepted

One python example http://www.psychicorigami.com/2009/03/01/5k-morse-code-app-using-capslock-led/

It is possible. I am trying to find an app that I found years ago, that could toggle the num lock and caps lock leds on my old ibook (10.4). Found that while looking today.

Found it. http://osxbook.com/book/bonus/chapter10/kbdleds/ http://googlemac.blogspot.com/2008/04/manipulating-keyboard-leds-through.html

Needs to be compiled though.

Oh, and "developer.apple.com/library/mac/#samplecode/HID_LED_test_tool/Introduction/Intro.html" XCode example :D

link|improve this answer
Thanks. As a note: Only the last example (Xcode) works on the current Mac OS X 10.6. – DASKAjA May 24 '11 at 7:35
Well, the last example is listed as 10.5 on Apple's page. Yet the morse code app is based on that code and won't work on 10.6. Don't know about the keyboard_leds one, but I sure hope it does. – cde May 24 '11 at 7:53
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.