• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Detect dim/brightness keys on laptop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detect dim/brightness keys on laptop


  • Subject: Detect dim/brightness keys on laptop
  • From: John Clayton <email@hidden>
  • Date: Fri, 25 Dec 2009 15:01:16 +0100

Hi All

I there a way to detect, on a system wide basis, that the dim/ brightness keys (or volume keys) have been pressed?

I tried using the event-tap API using a HID + head based intercept, running as root with assistive access switched on, but even that doesn't receive the events.

My aim is to write a little util that swaps the function keys depending on which app is running (i.e. so that during certain apps you don't have to use the FN key on the laptop to get F1). So I need to have the ability to modify the event stream - e.g. exactly what event taps provides.

The only fly in the soup so far is that the brightness (F1 and F2 as well as the volume keys) are not seen by the event tap spike program that Ive written.

Looking forward to any tips - thanks.
--
John Clayton
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Detect dim/brightness keys on laptop
      • From: Jeremy Pereira <email@hidden>
    • Re: Detect dim/brightness keys on laptop
      • From: Michael Davey <email@hidden>
  • Prev by Date: Re: NSArray as a class variable
  • Next by Date: UITextfield print to NSLog
  • Previous by thread: Re: NSArray as a class variable
  • Next by thread: Re: Detect dim/brightness keys on laptop
  • Index(es):
    • Date
    • Thread