###Function###
WinGetCaretPos

###Description###
Returns the coordinates of the caret in the foreground window.

###Syntax###
WinGetCaretPos (  )


###Parameters###
None.

###ReturnValue###
@@ReturnTable@@
Success:	a 2-element array containing the following information:
		$aArray[0] = X coordinate
		$aArray[1] = Y coordinate
Failure:	sets the @error flag to non-zero.
@@End@@


###Remarks###
<a href="WinGetCaretPos.htm">WinGetCaretPos()</a> might not return accurate values for Multiple Document Interface (MDI) applications if absolute CaretCoordMode is used.  See example for a workaround.  Note: Some applications report static coordinates regardless of caret position!


###Related###
CaretCoordMode (Option)


###Example###
@@IncludeExample@@
