Re: Get current caret position

2010-11-16 Thread Kyle Sluder
On Tue, Nov 16, 2010 at 4:26 AM, eveningnick eveningnick 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? Yo

Re: Get current caret position

2010-11-16 Thread Scott Ribe
On Nov 16, 2010, at 7:18 AM, eveningnick eveningnick wrote: > Thus i was thinking that as long as Word 2011 is a cocoa application, > its document is most likely something like a modified text field (not > sure though) and i could get that position (at least, relatively to > the main window's pos)

Re: Get current caret position

2010-11-16 Thread eveningnick eveningnick
> Hi George, > What you want to do would is within another's application. > Any public hooks/APIs could be used... > In this case VB and AppleScript. > For deeper, Cocoa-based integration, you would probably need to work with > Microsoft. > Couldn't hurt to try contacting them... > > The means men

Re: Get current caret position

2010-11-16 Thread Vincent Habchi
Le 16 nov. 2010 à 15:18, eveningnick eveningnick a écrit : > Basically i want to get the text caret position in Word 2011 active > document window. I want to place a popup window on that location. > Microsoft Word 2011 SDK is not available to public (i am not even sure > if this SDK includes such

Re: Get current caret position

2010-11-16 Thread eveningnick eveningnick
> The text caret doesn't have a single, global position. It is really the > position of the text selection within an active text view when the selection > length is zero. If you want to know which logical characters the insertion > point is at in a given text view, that's easy to find - just get

Re: Get current caret position

2010-11-16 Thread Graham Cox
On 16/11/2010, at 11:26 PM, eveningnick eveningnick wrote: > 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? The text care