GetCaretPos

Top  Previous  Next

 

GetCaretPos>X,Y,Relative

 

GetCaretPos retrieves the X, Y coordinates of the text caret (text cursor) of the foreground window.  The coordinates are returned in the variables provided.  Set Relative to 0 to return absolute screen coordinates, or 1 to return coordinates relative to the window.

 

Abbreviation: GTP

See also: GetCursorPos

 

Example

 

SetFocus>notepad*

WaitReady>0

GetCaretPos>X,Y,0

MouseMove>X,Y