Re: Detect dim/brightness keys on laptop

2009-12-30 Thread Jeremy Pereira

On 25 Dec 2009, at 14:01, John Clayton wrote:

 
 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.
 

I would suggest you don't bother.  There's a setting in the keyboard 
preferences that changes the behaviour of the function keys and it's better (in 
my opinion) to let your users decide for themselves how the keyboard should be 
set up.___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Detect dim/brightness keys on laptop

2009-12-26 Thread Michael Davey
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 (Cocoa-dev@lists.apple.com)
 
 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:
 http://lists.apple.com/mailman/options/cocoa-dev/frak.off%40gmail.com
 
 This email sent to frak@gmail.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Detect dim/brightness keys on laptop

2009-12-25 Thread John Clayton

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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com