Re: Processing mouse and key events from a background app
Re: Processing mouse and key events from a background app
- Subject: Re: Processing mouse and key events from a background app
- From: Cybereer <email@hidden>
- Date: Tue, 29 Nov 2005 16:19:39 -0500
This is really helpful. Thanks a lot.
Since many apps (Dock, Spotlight, and many 3rd party apps) can do it,
it's obviously possible. Do they all use undocumented API or what?
On Nov 29, 2005, at 4:09 PM, glenn andreas wrote:
On Nov 29, 2005, at 2:56 PM, David Niemeijer wrote:
At 15:47 -0500 29/11/05, Cybereer wrote:
Is it (officially) possible for an app to receive all events when
running in the background?
Yes. Use the event monitor target from the carbon events. See
<http://developer.apple.com/documentation/Carbon/Reference/
Carbon_Event_Manager_Ref/Carbon_Event_Manager_Ref.pdf>
That doesn't get any events when "secure mode" is enabled.
Unfortunately, in a previous system release (don't remember exactly
when this was fixed), once anything turned on secure mode, there
were cases where it would never get turned off (so once anything
asked for a password, nobody else would ever see key events again).
Furthermore, unless the user explicitly enables "allow access for
assistive devices" from Universal Access, you won't be able to get
raw key up/down/repeat events.
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
Widgetarium | the quickest path to widgets
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden