GlobalMouse

import {GlobalMouse} from 'cabbie-async';

Global mouse object handling global mouse commands

Methods

buttonDown(button?): Promise<void>

Click and hold the any mouse button at the current location of the mouse cursor

buttonDownAt(xOffset, yOffset, button?): Promise<void>

xOffset
number
yOffset
number
button
MouseButton

Click and hold the any mouse button relative to the current location of the mouse cursor

buttonUp(button?): Promise<void>

Releases the mouse button previously held at the current location of the mouse cursor

buttonUpAt(xOffset, yOffset, button?): Promise<void>

xOffset
number
yOffset
number
button
MouseButton

Releases the mouse button previously held at the current location of the mouse cursor

click(button?): Promise<void>

Click any mouse button at the current location of the mouse cursor

clickAt(xOffset, yOffset, button?): Promise<void>

xOffset
number
yOffset
number
button
MouseButton

Click any mouse button at an offset relative to the current location of the mouse cursor

doubleClick(): Promise<void>

Double-clicks at the current location of the mouse cursor

moveTo(xOffset, yOffset): Promise<void>

xOffset
number
yOffset
number

Move the mouse by an offset relative to the current mouse cursor position