Re: How to get VoiceOver cursor position
Re: How to get VoiceOver cursor position
- Subject: Re: How to get VoiceOver cursor position
- From: "Brian J. Cardiff" <email@hidden>
- Date: Mon, 05 Nov 2012 13:53:17 -0300
Hi Matthias,
Thanks for the response, but it doesn't answer my question. I would detail my scenario a bit more.
The app I am building runs in background and interact with other running apps.
So far I access elements of other apps with the accessibility API: AXApplication, AXWindow, AXElement, etc.
Although an AXElement knows if it has focus or not, the voiceover performs some grained logic I would like to consume.
That's is why I wan't to read the rect of the voice over cursor.
Any clue if it is possible?
Regards,
Brian J. Cardiff
bcardiff(?)
gmail.com
.
On Mon, Nov 5, 2012 at 1:11 PM, Matthias Schmitt
<email@hidden> wrote:
Hello Brian,
On 05.11.2012, at 16:32, Brian J. Cardiff <
email@hidden> wrote:
> I would like to know if there is a way to get the focused element by the voiceover app, or at least, the frame black rectangle draw over the screen.
Starting from iOS 4.0 an element itself can tell you if it is in VO focus.
- (void)accessibilityElementDidBecomeFocused
- (void)accessibilityElementDidLoseFocus
- (BOOL)accessibilityElementIsFocused
Once you have the element, you may check its frame coordinates to get the VO cursor rectangle.
Does this answer your question?
Best regards
Matthias Schmitt
magic moving pixel s.a.
23, Avenue Grande-Duchesse Charlotte
L-3441 Dudelange
Luxembourg
Phone: +352 54 75 75 - 0
http://www.mmp.lu
_______________________________________________
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