DesktopWindow.MouseX

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aDesktopWindow.MouseX

New in 2021r3

Supported for all project types and targets.

The X coordinate of the mouse (points). Measured from the top-left corner of the window.