Vai al contenuto principale
J

dsh-screen-control

jinweixu1999-ux/dsh-screen-control

Screen capture plus real mouse and keyboard control for Windows. Typing needs a named target window, the foreground is checked before and after, and focus loss aborts the call. Uses the built-in Win32 APIs only, with no driver, MCP server or bundled binary.

Installazione

dsh plugin --profile web add github:jinweixu1999-ux/dsh-screen-control

README

dsh-screen-control

给 DeepSeek Harness 的屏幕与输入控制插件:截图、点击、输入、按键。

Screen capture and real mouse/keyboard control for DeepSeek Harness on Windows.

  • 纯 Win32(user32 / gdi32),零外部依赖、零随包二进制、零 MCP 服务
  • 打字前强制校验目标窗口,中途丢焦立即停止
  • Unicode 码点直送,中文和任意符号都能输入,不受键盘布局影响
  • 坐标使用物理像素,与截图同源,150% 缩放下也不会点偏

工具

工具作用
desktop_capture截图,返回 PNG 路径(用 read_image 查看)
desktop_windowslist 枚举窗口 / focus 前置窗口
desktop_inputclick / type / key

安装

从本仓库安装(现在就能用): 打开 DSH 的 插件 → 添加插件,选择本仓库目录(含 package.json 的那一层),装完重启应用。命令行等价做法:

"<安装目录>\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add "<仓库目录的绝对路径>"

从 npm 安装(尚未发布): 发布后可用

dsh plugin add dsh-screen-control

限制

仅 Windows;每次截图是一帧静态图;按像素坐标操作,没有 UI Automation 语义;多会话同时驱动同一桌面会互相抢焦点;工具以你的账户权限运行,不受会话沙箱模式约束。

完整说明见 docs/DETAIL.md。

许可

MIT

Plugin correlati