DesktopWindow.MouseY

From Xojo Documentation

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

New in 2021r3

Supported for all project types and targets.

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