Re: How to get the word under the mouse pointer?
Re: How to get the word under the mouse pointer?
- Subject: Re: How to get the word under the mouse pointer?
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 07 Dec 2007 06:04:36 -0500
- Thread-topic: How to get the word under the mouse pointer?
on 2007-12-07 2:31 AM, Ron Fleckner at email@hidden wrote:
> My guess is that you could use Carbon calls to define a global hot
> key to start your faceless app, then, perhaps also using Carbon, find
> out where the mouse pointer is.
Carrying this to the next step: You could then use the Accessibility API to
obtain the word under the mouse pointer.
Unfortunately, in Leopard Apple has removed the only document that ever
existed that explains how to use the Accessibility API in an "assistive"
application like this. If you still have Tiger, look for the "Preliminary
Release Note" on using the Accessibility API to write assistive
applications.
Otherwise, look for the header files prefixed with "AX" in the HIServices
subframework of the ApplicationServices framework. Also, Apple's
UIElementInspector (Accessibility Inspector) sample code shows how to use
it.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
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