DesktopWindow.MouseX
From Xojo Documentation
Read-Only Property (As Integer )
The X coordinate of the mouse (points). Measured from the top-left corner of the window.
The X coordinate of the mouse (points). Measured from the top-left corner of the window.