Re: Re: Background Application Receiving Keyboard/Mouse Events
Re: Re: Background Application Receiving Keyboard/Mouse Events
- Subject: Re: Re: Background Application Receiving Keyboard/Mouse Events
- From: "Jaime Rios" <email@hidden>
- Date: Wed, 27 Sep 2006 12:53:32 -0400
Hi,
Apple has sample code to show how to do this with GetEventMonitorTarget:
http://developer.apple.com/samplecode/EventMonitorTest/index.html
I hope this helps you out.
-Jaime
On 9/27/06, Martin Köhler <email@hidden> wrote:
You can use GetEventMonitorTarget (part of Carbon Event Manager) to
monitor events.
See
http://developer.apple.com/documentation/Carbon/Reference/
Carbon_Event_Manager_Ref/Reference/reference.html
Note that AFAIK you'll need a Carbon run loop, NSApplicationMain
won't work.
Best regards,
-- Martin
Am 27.09.2006 um 17:58 schrieb Jordan Evans:
> Is it possible to have an application that is running in the
> background receive keyboard and mouse events?
>
> If so, how do I set that up?
_______________________________________________
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
_______________________________________________
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