I assume, but don't know for certain, that MacBook keyboards are USB HID devices. In that case, this document:
http://www.usb.org/developers/devclass_docs/Hut1_11.pdf discusses extended HID usages, including those which can be used in toggling on/off controls, of which LEDs are one instance. From there, I'd go to the IOKit framework and see what APIs exist for playing with OOCs. IOHIDUsageTables.h contains useful constants. Scott On Oct 2, 2007, at 12:15 AM, Dethe Elza wrote: > Hi Dan, > > On 10/1/07, Dan Christensen <[EMAIL PROTECTED]> wrote: >> Another question: is there a way I can make an LED on my MacBook Pro >> flash? My program is a mail notifier, and I'd like to know when I >> have >> new mail without unblanking my screen, something I'm used to with >> xbuffy >> under linux. The LEDs I'm thinking of are the caplocks light, the >> light >> to the left of the latch for the lid, and the LED on the power >> connector, but if there's another I haven't thought of that would be >> fine too. A google search didn't turn anything up... > > I agree that would be cool to do, but I don't know how to do it. Does > anyone else here know how to blink the LEDs on a MacBook? > > --Dethe > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig