On Tue, Nov 16, 2010 at 4:26 AM, eveningnick eveningnick
<eveningn...@gmail.com> wrote:
> Hello
> I a wondering, if it is possible to get the current screen position of
> a text cursor (text caret) using Cocoa? It is possible to do that in
> Windows system (GetCaretPos), maybe Mac allows some similar
> functionality?

You're enumerating Word's windows and calling GetCaretPos on its text
view? Mac OS X does not let you do that. The closest you can get is
through the Accessibility framework: apps expose an object hierarchy
to the accessibility system that other apps can use to manipulate the
user interface. However, this is optional both from the app
developer's point of view as well as that of the user (the user needs
to turn on access for assistive devices).

IIRC, Word 2011 re-instated VBA support. Perhaps you can use this
interface to accomplish your goals?

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to