Re: EventMonitorTarget and background apps
Re: EventMonitorTarget and background apps
- Subject: Re: EventMonitorTarget and background apps
- From: Eric Schlegel <email@hidden>
- Date: Mon, 16 Jul 2007 14:37:00 -0700
On Jul 16, 2007, at 1:46 PM, Mike wrote:
I have a simple Carbon app in which I install a monitor handler
using GetEventMonitorTarget. I then use my handler to get keystrokes
from other apps when they are typed.
I now want to enable my app to run as a background-only app with no
UI and still be able to get events in my handler when keys are typed.
I added the two required flags, LSBackgroundOnly and LSUIElement to
my app's Info.plist file and that works fine - my app launches in
the background only.
The problem is, when I launch my app in the background only, my
monitor handler never gets called and I never receive any copies of
the events I receive when my app is running as a normal GUI-based app.
Is there something else I need to do in order to have my app run as
a background only app and still be able to receive events on my
monitor handler?
There should't be - I believe your event handlers should still receive
events even when your app is running as a background-only app. Do you
have a sample app with source code that reproduces the problem?
-eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden