Re: AXUIElementPostKeyboardEvent experience
Re: AXUIElementPostKeyboardEvent experience
- Subject: Re: AXUIElementPostKeyboardEvent experience
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 16 Dec 2002 20:25:39 -0500
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.
--
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.