Window.MouseY

From Xojo Documentation

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

Supported for all project types and targets.

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