Re: How to get VoiceOver cursor position
Re: How to get VoiceOver cursor position
- Subject: Re: How to get VoiceOver cursor position
- From: Dave Poirier <email@hidden>
- Date: Mon, 05 Nov 2012 12:12:58 -0500
Would it be fair to assume your application is running on OSX and not on iOS?
Dave Poirier Senior Software Developer cell: 18192097798 skype: ekscrypto
All I need is a towel, everything else can be answered by 42.
On 2012-11-05, at 11:53 AM, Brian J. Cardiff < email@hidden> wrote: 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