Skip to content

Tego Bot API Documentation v0.2.0


Tego Bot API Documentation / setKeyboardDelay

Function: setKeyboardDelay()

setKeyboardDelay(ms): void

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

Set the delay between keyboard operations in milliseconds

Parameters

ms

number

Delay in milliseconds

Returns

void

Example

typescript
import { setKeyboardDelay, keyTap } from "@tego/botjs";

// Set 10ms delay between key presses
setKeyboardDelay(10);

// These will have 10ms delay between them
keyTap('h');
keyTap('i');

Released under the MIT License.