Setup guide

The Mouse object provides properties and methods related to the mouse cursor and mouse buttons.
Mouse
Properties
Remarks
eMouseButton can have one of the following values:
The Button property can have either the value
dirDown
(1) or
dirUp
(0).
X and Y are screen coordinates in pixel, i.e. in 1280x1024 display mode, the following example clicks the right mouse
button in the lower right corner of the screen (note coordinates are zero-based):
Mouse.X=1279
Mouse.Y=1023
Mouse.Button(btnRight)=dirDown
Mouse.Button(btnRight)=dirUp //don't forget to release the button!
Use the Display object to determine the current screen resolution.
Click theicon in the script editor's toolbar to insert mouse coordinates automatically.
Methods
Wheel(
eDirection [, delta=120]
)
Scrolls the mouse wheel.
Arguments
eDirection
Required.
dirUp
or
dirDown
delta
Optional.
Unsigned number representing the amount of wheel movement.
The default is 120, which is equal to one wheel click.
X
Read/write unsigned horizontal coordinate of
the mouse cursor
Y
Read/write unsigned vertical coordinate of
the mouse cursor
Button(
[eMouseButton=btnLeft] [, nXButton=0]
)
Read/write state of the mouse button
specified in eMouseButton and nXButton.
See remarks.
btnLeft
Left mouse button. The default.
btnMiddle
Middle mouse button
btnRight
Right mouse button
btnX
Extended (X) mouse button specified in nXButton.
nXButton=0
or
nXButton=1
: first X
button (default),
nXButton=2
: second X button