Re: Bug in Safari accessibility (Bill Cheeseman)
Re: Bug in Safari accessibility (Bill Cheeseman)
- Subject: Re: Bug in Safari accessibility (Bill Cheeseman)
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 11 Mar 2004 06:37:36 -0500
on 2004-03-11 2:16 AM, Larry Gerndt at email@hidden wrote:
>
Bill can you (or anyone) tell me how I can reliably get the parent window
>
currently under the mouse in all cases? I thought this would work:
>
AXUIElementCopyAttributeValue(inElement, kAXWindowAttribute,
>
(CFTypeRef*)&window)
>
but it doesn't always work: it returns nil in some cases even though the
>
mouse is definitely in the content region of the window. I can see this
>
behavior (sort of) when I use UIElementInspector, using a Safari window:
>
Place the mouse inside an AXStaticText field, then move it out of that area
>
but not onto any other control: Inspector still says the current element is
>
the static text. At the same time, in my code,
>
AXUIElementCopyAttributeValue is returning nil. Is this a bug or am I
>
misunderstanding something?
I see this behavior in Safari even when I click in the general content area
of the window. So I don't think it's a bug in AXUIElementCopyAttributeValue
or your use of it. I assume it has something to do with the parent-child
mismatch, or that they have a common cause, but I haven't thought that
hypothesis through.
I've reported this to Apple as bug # 3584942.
--
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
_______________________________________________
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.