CursorX, CursorY

Windows management function.

The CursorX, CursorY functions return the X or Y position of the Windows caret (text insert position).

Syntax

x=CursorX()
y=CursorY()

Return value

x,y : numeric in pixels ; it gives the coordinates of the current text caret relative to the top-left corner of the window. If no caret is present or if no window is found, 0 is returned.

Examples

 

x=CursorX()

y=CursorY()