How to get the caret (text cursor) pos in pixel

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
chrisg33
Posts: 1
Joined: Fri Aug 24, 2012 8:42 pm

How to get the caret (text cursor) pos in pixel

Post by chrisg33 »

Hi,

is there a way to determine the caret (text cursor) position from an external program, e.g. vb script or visual basic?

I want to position a window (which is activated by a system wide hotkey) at the text cursors position.
This works fine with most windows programs, but not with openoffice.
The Winapi function GetCaretPos does not work with openoffice nor does GetGUIThreadInfo.

Any idea/solution?
Thanks Chris
oo3.4.1, libre office 3.6.0
User avatar
RoryOF
Moderator
Posts: 34612
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: how to get the caret (text cursor) pos in pixel

Post by RoryOF »

VB script and Visual Basic are not well supported in OpenOffice. If you wish to access low level properties you will need to use OpenOffice's API at
http://wiki.openoffice.org/wiki/API
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Post Reply