Re: AXUIElementPostKeyboardEvent experience
Re: AXUIElementPostKeyboardEvent experience
- Subject: Re: AXUIElementPostKeyboardEvent experience
- From: "John O. Louch" <email@hidden>
- Date: Mon, 16 Dec 2002 18:46:57 -0800
>
on 02-12-16 6:27 PM, John O. Louch at email@hidden wrote:
>
>
> It sounds like you are using the wrong api in any case. If you want an app
>
> to quit, then send it a quit appleevent. If you want to do a menu command
>
> when the app is in the background then find the menu item with the
>
> Accessibility api and post the AXPressAction.
>
>
I'm surprised by your answer, because AXUIElementPostKeyboardEvent is part
>
of the accessibility API. This leads me back to my original question: what
>
is the intended purpose of the AXUIElementPostKeyboardEvent function? If
>
it's just to put text in a text view or text field, why isn't setting the
>
text attribute enough? The problem with the AXPressAction is that it often
>
requires the "background" app to be brought to the front in order to work. I
>
thought sending a Command key equivalent via AXUIElementPostKeyboardEvent
>
might be a good workaround for that. I'm a little confused by all this.
It is meant as an api that guarantees that the keyboard events goes to a
particular application. It was not necessarily designed to remote control
an application while it is in the background.
I misled you. Just checked myself, no menu command can be pressed in
today's system when it is in the background. We will have to discuss this
at Apple and determine if that is the correct behavior, or if there is a
workaround.
Thanks,
jl
>
>
--
>
>
Bill Cheeseman - email@hidden
>
Quechee Software, Quechee, Vermont, USA
>
http://www.quecheesoftware.com
>
>
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
>
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
>
Croquet Club of Vermont - http://members.valley.net/croquetvermont
>
_______________________________________________
>
accessibility-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
>
Do not post admin requests to the list. They will be ignored.
---------------------------------------------
John Louch Internet #: email@hidden
(805) 546 0216
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.