• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get the word under the mouse pointer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to get the word under the mouse pointer?
      • From: James Chen <email@hidden>
References: 
 >Re: How to get the word under the mouse pointer? (From: Ron Fleckner <email@hidden>)

  • Prev by Date: Re: Trouble creating drag image from a partial view
  • Next by Date: Re: Trouble creating drag image from a partial view
  • Previous by thread: Re: How to get the word under the mouse pointer?
  • Next by thread: Re: How to get the word under the mouse pointer?
  • Index(es):
    • Date
    • Thread