Re: Detect dim/brightness keys on laptop
Re: Detect dim/brightness keys on laptop
- Subject: Re: Detect dim/brightness keys on laptop
- From: Michael Davey <email@hidden>
- Date: Sat, 26 Dec 2009 21:59:55 +1100
As far as I know, the system provides you with this choice.
On 26 Dec 2009, at 01:01, John Clayton wrote:
> 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
_______________________________________________
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