Skip to content

Tego Bot API Documentation v0.1.1


Tego Bot API Documentation / middleClick

Function: middleClick()

middleClick(x?, y?): void

Defined in: index.ts:796

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

Parameters

x?

number

Optional X coordinate to move to before middle-clicking

y?

number

Optional Y coordinate to move to before middle-clicking

Returns

void

Example

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

// Middle-click at current position
middleClick();

// Move to (500, 600) and middle-click
middleClick(500, 600);

Released under the MIT License.