Screen.getMonitorAtPoint

Returns the monitor number in which the point (@x,@y) is located.

class Screen
int
getMonitorAtPoint
(
int x
,
int y
)

Parameters

x int

the x coordinate in the virtual screen.

y int

the y coordinate in the virtual screen.

Return: the monitor number in which the point (@x,@y) lies, or a monitor close to (@x,@y) if the point is not in any monitor.

Meta