re: Detecting text under mouse
re: Detecting text under mouse
- Subject: re: Detecting text under mouse
- From: "Mr. George Warner" <email@hidden>
- Date: Sat, 13 Jun 2009 09:56:29 -0700
On Sat, 13 Jun 2009 14:48:19 +1000, Jacob Rhoden
<email@hidden> wrote:
> Is it possible to write an application that tracks the mouse over any
> application and reads the contents of the text that is under the
mouse?
> I would like to develop an application that provides context
sensitive
> translation as a learning tool.
VoiceOver uses the Accessibility APIs to do this. If you have the
developer tools installed run the "Accessibility Inspector" app (in </
Developer/Application/Utilities/Accessibility Tools/>) and watch the
info in the utility window change as you move the mouse over different
parts of the screen. Note that Accessibility has to be turned on (via
the "Universal Access" system preference panel) for this to work.
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden