Invoice-Downloader
EthanYoQ
电子发票整理与报销准备工具:从邮箱批量收集 PDF/OFD/XML 发票,OCR 识别、分类归档并生成 Excel 汇总;提供 Windows/macOS 桌面版与 DSH 插件。
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:QiaoSchoco/dsh-lit-shot
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
在 DSH 打字框里加一个截图键 —— 像微信聊天窗里那个:点一下、框一块、图就进输入框。

Alt+A:在别的窗口里也能直接框选;截完自动回到 DSH,图片进草稿。~/.dsh/dsh-lit-shot/settings.json)。要求:Windows 10/11、DSH 0.2.0-rc.2 及以上(在 0.2.1-rc.2 上验证过)、系统自带的 Windows PowerShell 5.1(不需要 pwsh)。
dsh plugin add github:QiaoSchoco/dsh-lit-shot
也可以在 DSH 插件页里用「从路径安装」指向本仓库目录。装好后重启 DSH(宿主半是常驻进程,只在启动时加载)。
| 操作 | 结果 |
|---|---|
| 左键点剪刀 | 冻结屏幕 → 拖框 → 图片进输入框 |
Alt+A(默认) |
同上,任何窗口里都能触发;截完 DSH 自动跳到最前,光标已经在输入框里,接着打字就行 |
| 右键点剪刀 | 快捷键面板:显示当前热键,按新组合键即修改 |
框选时 Esc / 右键 |
取消这次截图 |
index.js:拉起一个常驻 powershell.exe(scripts/agent.ps1,内嵌 C#)。脚本用 RegisterHotKey 抢全局热键、用全屏无边框 Form 画冻结画面与选框、用 GDI CopyFromScreen 抓屏、按选区裁剪后把 PNG 路径写回 stdout(一行一个 JSON)。宿主把这些事件包成 6 条 ctx.webServer 路由:capture / pending / shot / claim / settings / cancel。client.js:在 conversation.input.left 槽注册剪刀按钮,点它 POST capture 等结果;热键截的图通过 /pending 轮询取回。拿到 PNG 后 conversation.createDrafts(sessionId, [file]) → inputActions.addAttachments(ids),失败则回滚并把图放进剪贴板。conversation.createDrafts / inputActions.addAttachments 是 DSH 尚未写进文档的草稿附件接口,升级后可能变动 —— 插件里做了失败回滚和剪贴板兜底,但这条线不是公开契约。Alt+A 可能和别的软件撞车;撞了会在右键面板显示「未注册」,换一个组合键即可。A screenshot button for the DSH composer on Windows: click the scissors, drag a rectangle over the frozen screen, and the picture is handed to the shipped draft-attachment channel so it is sent as a normal image. A resident PowerShell agent owns the global hotkey (Alt+A by default, editable from the right-click panel) and a full-screen overlay. Requires DSH >=0.2.0-rc.2 on Windows 10/11.
dsh plugin add github:QiaoSchoco/dsh-lit-shot
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: chat、wechat。