Skip to content

Tego Bot API Documentation v0.2.0


Tego Bot API Documentation / doubleClick

Function: doubleClick() ​

doubleClick(x?, y?): void

Defined in: botjs/src/index.ts:728

Perform a double-click at the current mouse position or at specified coordinates

Parameters ​

x? ​

number

Optional X coordinate to move to before double-clicking

y? ​

number

Optional Y coordinate to move to before double-clicking

Returns ​

void

Example ​

typescript
import { doubleClick } from "@tego/botjs";

// Double-click at current position
doubleClick();

// Move to (100, 200) and double-click
doubleClick(100, 200);

Released under the MIT License.