mouseLocation([x], [y], [screen])

Class: SwingUI.

Description:

Gets or sets a position of a pointing device. If "screen" is specified,
the {x,y} position will be relative to the specified screen, otherwise
the position will be set relative to screen at index 0 (default screen).
You can get a list of screens with ui.screens getter.

Parameters:

Name Type Description

[x]

number

Use only to set pointer location

[y]

number

required if x is specified

[screen]

number

Returns:

When setting arguments, this instance of SwingUI is returned, otherwise current value is returned.

Type: Object | SwingUI