rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:DSH-Raising-Plan/dsh-window-locator
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Windows 显示器几何与前台窗口查询(物理像素),做成 DeepSeek Harness 工具。
社区插件,与 DeepSeek 官方无关。
概念来自canyueY/window-locator。
English: README.en.md
截图工具和点击工具最怕坐标系不一致:Qt 的 logical 坐标、浏览器的 CSS 像素、Windows 的物理像素,在 125% / 150% 缩放下会差出一大截。这个插件统一返回 物理像素:
SetThreadDpiAwarenessContext(PMv2),再枚举显示器与前台窗口;bounds 与 work 区域,主屏单独标出。典型用法:让 Agent 先 desktop_snapshot,知道把鼠标点到哪、截图裁哪、当前前台是不是自己。
device / bounds / work / is_primary;hwnd / title / rect / pid / 是否最大化 / is_self(是不是 DSH 自己);desktop_snapshot = 显示器列表 + 主屏 + 前台窗口;powershell.exe 可用(系统自带即可);dsh plugin --profile web add github:DSH-Raising-Plan/dsh-window-locator#plugin/dsh
| 工具 | 参数 | 作用 |
|---|---|---|
list_monitors |
无 | 列出全部显示器(物理像素 bounds / work / 主屏标记) |
foreground_window |
无 | 前台窗口标题、矩形、pid、最大化状态 |
desktop_snapshot |
无 | 一次返回显示器列表 + 主屏 + 前台窗口 |
输出示例(节选):
{
"monitors": [
{
"device": "\\\\.\\DISPLAY2",
"bounds": { "x": 0, "y": 0, "width": 2560, "height": 1440 },
"work": { "x": 0, "y": 0, "width": 2560, "height": 1392 },
"is_primary": true
}
],
"primary": { "device": "\\\\.\\DISPLAY2", "is_primary": true },
"foreground": {
"hwnd": 67372,
"title": "…",
"rect": { "x": 109, "y": 139, "width": 1523, "height": 893 },
"pid": 12345
}
}
desktop_snapshot → 看有几块屏、主屏多大、当前前台窗口是谁
foreground_window → 截图前确认前台不是自己,避免把 Agent 的窗口截进去
scale;npm test
npm run check
需要 @deepseek-ai/dsh-tools(或设置 DSH_TOOLS_PATH)。
AGPL-3.0-or-later
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。