Re: AXUIElementPostKeyboardEvent and Carbon Apps
Re: AXUIElementPostKeyboardEvent and Carbon Apps
- Subject: Re: AXUIElementPostKeyboardEvent and Carbon Apps
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 18 Oct 2004 15:38:21 -0400
I don't know whether this is related, but when I send Command-N to TextEdit,
it opens a new window as expected, but the letter "N" is also typed into the
window. If I recall correctly, I am using the systemwide event for this.
on 2004-10-18 2:44 PM, Dupas Jean-Daniel at email@hidden wrote:
> I searcj into archives and found nothing about my
> problem.
> I'm trying tu use AXUIElementPostKeyboardEvent to send
> shortcut event to others apps.
> With Cocoa Apps (TextEdit, Mail, ...) i'have no
> problem, but for Carbon apps (Finder, iTunes) i have a
> probleme in special case.
> First, i send my events directly to the app (no system
> wide). When i send my event batch (command key down, n
> key down, N key up, command key up) if the key N is
> down on the keyboard nothing append, but if the N key
> is up the event proceed normally (whatever the app is
> foreground or background).
> In my test, i just try to send an event while pressing
> the N key, and sending an other event with the N key
> up.
> The first vanish, and the second was corrctly sended
> to Finder.
> I try to do the same manipulation but using
> CGPostKeyboardEvent and the event is always proceed.
> Is there a known difference between this two function?
> The documentation doesn't specified it.
--
Bill Cheeseman - email@hidden
PLEASE NOTE NEW E-MAIL ADDRESS!
_______________________________________________
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