Get an absolute screen pos of a text cursor in another Carbon application from Cocoa app
Get an absolute screen pos of a text cursor in another Carbon application from Cocoa app
- Subject: Get an absolute screen pos of a text cursor in another Carbon application from Cocoa app
- From: eveningnick eveningnick <email@hidden>
- Date: Sun, 26 Sep 2010 14:42:37 +0300
Hello!
Is it possible to somehow determine the text caret's absolute screen
position of a Carbon application?
(I've sent it to carbon mailing list, but seems like no one is
interested in carbon development anymore)
What am i trying to do is to display a popup list window near the text
cursor in Microsoft Word (from my own process) - like it is done in
XCode (or Visual studio, or Delphi) as a dropdown code suggestion
menu.
I can't do it by the means provided by Word (Word supports only
getting cursor position relatively to the left-top page corner (it can
be done using AppleScript command), but i've no possibility to
determine where that page corner is located - unfortunately page is
not a separate accessibility object). Maybe it can be done somehow
using "under-the-hood" API?
Or perhaps someone knows how could I get that current page's left-top
corner coordinates? That would solve problem (though i doubt there's
such a possibility)
Thanks a lot for any suggestion!
George
_______________________________________________
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