From f353254a865324acc6ce047bc8041d8ac3c04e94 Mon Sep 17 00:00:00 2001 From: yu <191972707@qq.com> Date: Thu, 29 Oct 2026 16:45:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E9=BD=90=20desktop=20=E6=8B=BE?= =?UTF-8?q?=E5=8F=96=20IPC=20=E6=B3=A8=E5=86=8C=E4=B8=8E=20import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/index.ts b/src/main/index.ts index 9291957..f612194 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -9,6 +9,7 @@ import { capabilityCount, capabilityIds } from "./engine/registry"; import { closeBrowserSession, startRun, stopRun } from "./run/manager"; import { fixtureUrl, startFixtureServer, stopFixtureServer } from "./fixture/server"; import { loadSettings, updateSettings } from "./settings"; +import { pickDesktopElement, listVisibleWindows, pickScreenRegion } from "./desktop-pick"; import { logMain } from "./logger"; let mainWindow: BrowserWindow | null = null; @@ -112,6 +113,9 @@ function registerIpc(): void { } return session.pickElement(); }); + ipcMain.handle("desktop:pick-element", () => pickDesktopElement()); + ipcMain.handle("desktop:pick-window-list", () => listVisibleWindows()); + ipcMain.handle("desktop:pick-region", () => pickScreenRegion()); ipcMain.handle("flows:list", () => listFlows()); ipcMain.handle("flows:create", (_event, name?: string) => { const flow = createFlow(name);