MouseX, MouseY

Windows management function.

The MouseX, MouseY functions return the X or Y position of the mouse.

Syntax

x=MouseX()
y=MouseY()

Return value

x,y : numeric in pixels ; it gives the coordinates of the mouse relative to the top-left corner of the screen.

Examples

 

x=MouseX()

y=MouseY()