Skip to main content

PCController

caution

This service is experimental and may change in the future.

Send various events to PC, including opening a URL, start an app, sending text, etc.

import { PCController } from "@devicescript/core"

const PCController = new PCController()

Commands

openUrl

Open a URL in the default browser.

PCController.openUrl(url: string): Promise<void>

startApp

Start an app.

PCController.startApp(name: string): Promise<void>

sendText

Send text to the active window.

PCController.sendText(text: string): Promise<void>

runScript

Run a script.

PCController.runScript(script: string): Promise<void>