UtilsLib Xojo plugin

EinhugurEvents.GetMouse Method

Obtains the current position of the mouse in screen relative coordinates.

shared GetMouse() as Xojo.Point

Parameters

Returns

Xojo.Point
The mouse location as Xojo.Point

Remarks

Note that on Xojo older than 2019r2 then this function will return REALbasic.Point and not Xojo.Point

Example:


var x,y as Double
var myPoint as Xojo.Point = EinhugurEvents.GetMouse()

x=myPoint.x
y=myPoint.y

See Also

EinhugurEvents Class