Re: AXUIElementPerformAction kAXPressAction on Button does nothing
Re: AXUIElementPerformAction kAXPressAction on Button does nothing
- Subject: Re: AXUIElementPerformAction kAXPressAction on Button does nothing
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 27 Oct 2005 18:32:29 -0400
- Thread-topic: AXUIElementPerformAction kAXPressAction on Button does nothing
on 2005-10-27 8:41 AM, Dan Steen Andersen at email@hidden wrote:
> I am trying to perform the kAXPressAction on a AXUIElementRef
> representing a button to automatically close a modal dialog. The
> button is enabled and the app is in foreground and I can see that the
> button is pressed but the dialog isn't closed. Is there someone who
> can explan this behaviour - is there something more I need to do to
> make this work?
I have the impression that this is a fairly common experience, and that it
may be a result of how the target application's button action is
implemented.
One way to test this hypothesis is to perform the click operation on the
same target button using Apple's UI Element Inspector or my PreFab UI
Browser. If the button is successfully clicked by either of those
applications, then you're doing something wrong. If it isn't, then it's
likely the fault of the target application.
To answer your question directly, I'm not aware of any unusual or
undocumented requirements for the kAXPressAction.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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