Retrieves the position of the mouse cursor.

GetCursorPosEx(@nXCoord, @nYCoord [, bRelative [, nHwnd | cWindowName]])

Parameters

@nXCoord

A variable by reference into which the X coordinate of the cursor is stored.

@nYCoord

A variable by reference into which the Y coordinate of the cursor is stored.

bRelative (optional)

If you omit bRetative or pass .F. the coordinates are relative to the whole screen,
otherwise the coordinates are computed relative to the specified window passed in the nHwnd | cWindowName parameter.

nHwnd | cWindowName (optional)

Either the hWnd or the name of a VFP window. The coordinates are computed relative to this window.

Return Value

Always .T.

See Also

Reference

AFontInfo
ASplitStr
Decimals
Int64_Add
Int64_Div
Int64_Mod
Int64_Mul
Int64_Sub

Used WinApi functions

GetCursorPos
ScreenToClient