Skip to content

Tego Bot API Documentation v0.1.1


Tego Bot API Documentation / setKeyboardDelay

Function: setKeyboardDelay()

setKeyboardDelay(ms): void

Defined in: index.ts:386

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.