Skip to content

Tego Bot API Documentation v0.1.1


Tego Bot API Documentation / updateScreenMetrics

Function: updateScreenMetrics()

updateScreenMetrics(): void

Defined in: index.ts:537

Update screen metrics (refresh monitor information) Call this after display configuration changes

Returns

void

Example

typescript
import { updateScreenMetrics, getScreenSize } from "@tego/botjs";

// After connecting/disconnecting monitors
updateScreenMetrics();
const newSize = getScreenSize();
console.log(`Updated screen size: ${newSize.width}x${newSize.height}`);

Released under the MIT License.