Hi
I’m trying to get the selected text from a mail and
highlight it, with the use of the AX-API.
It’s possible to get the text with the use of kAXValueAttribute
on the AXUIElementRef and even getting the size of the box
containing the text, with the use of kAXSizeAttribute. I’m guessing I should use
something like AXSelectedTextMarkerRange to get the text and set the highlight.
However, the AXSelectedTextMarkerRange (this is the same for AXStartTextMarker
and AXEndTextMarker) does not seem to return a correct value, compared to doing
the same in e.g. TextEdit.
Apples Voice over can read selected text from mail, so
unless it access to some private methods, I guess it should be possible to do
the same?
Any help is appreciated.
Best regards
Steffen Andersen
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