Re: kAXErrorCannotComplete timeout value
Re: kAXErrorCannotComplete timeout value
- Subject: Re: kAXErrorCannotComplete timeout value
- From: James Dempsey <email@hidden>
- Date: Fri, 5 Nov 2010 18:41:08 -0700
Have you tried AXUIElementSetMessagingTimeout()?
Details are here:
http://developer.apple.com/library/mac/#documentation/Accessibility/Reference/AccessibilityLowlevel/AXUIElement_h/index.html
That should do what you are looking for.
-James
On Nov 5, 2010, at 5:47 PM, James Tatum wrote:
> Hi all,
>
> When performing actions against an app in 10.6, depending on
> fate/phase of the moon I get kAXErrorCannotComplete timeouts. The
> action is performed but not quickly enough for the accessibility API.
>
> Is there any way to change the timeout value? If I could have even
> another second or two, these requests would succeed. For my purposes,
> it seems to be remarkably short (~5 seconds).
>
> I could ignore the error but as has been noted, kAXErrorCannotComplete
> does not always indicate timeouts, and I have no way of knowing when
> the application actually handles the event without blocking on
> AXUIElementPerformAction.
> _______________________________________________
> 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
--------------------------------------------------
James Dempsey
AppKit Engineering
Apple
email@hidden
_______________________________________________
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