rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:aaron999-h/dsh-screenshot
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Adds a Screenshot row to the composer's + menu. Pick a window or drag a region anywhere on the desktop — DSH itself stays visible — annotate it WeChat-style, then insert it into the draft, copy it, or save it.
KeyDown, so pressing Esc while DSH was minimised (or while another app had focus) did nothing. The editor now polls the physical key state every 30 ms (GetAsyncKeyState) and walks the same ladder — deselect shape → leave the tool → drop the selection → cancel the capture. Escape while the scrolling panel is open closes only that panel, leaving your selection intact.register-failed 1409 and a silently dead shortcut.+ menu: Screenshot / 截图提问.W × H badge tracking the pointer.矩形 椭圆 直线 箭头 画笔 马赛克 文字 | 撤销 重做 | 复制 另存为 | ✕ 取消 ✓ 插入.Delete to remove. Ctrl+Z / Ctrl+Y walk undo and redo.For pages taller than the screen (chat history, long articles, long documents):
PgDn, whatever it uses).Enter) when you reach the bottom.✓ inserts, 复制 copies, 另存为 saves, ✕ / Esc discards.How the stitching works: the region is sampled every 320 ms, adjacent frames are compared row by row (SAD) to measure how far the content moved up, and only the newly revealed bottom rows are appended. A frame that did not move, or a page that changed entirely, is ignored. Height is capped at 24000 px and one session may run 180 s. The detector has a standalone self-test ([DshShot.Editor]::ScrollSelfTest($dir)): it renders a long page, feeds it in as slices and compares pixels.
Alt + A starts a capture on the Desktop, same as + → Screenshot:
RegisterHotKey registration, so the key never depends on window focus; after the region is chosen the main window is restored and raised so the attachment is right in front of you.ctx.shortcuts command, so it shows up in Settings → Shortcuts and can be rebound there — that in-window binding is what fires while DSH has focus. Starting twice is harmless.Alt+A. If another app already owns that combo, registration fails and the log at %TEMP%\dsh-screenshot.log records hotkey unavailable: register-failed …; the in-window binding still works.dsh web) has neither: capturing needs the Desktop Host.dsh plugin install dsh-screenshot
Or add "dsh-screenshot" to dsh.profile.bundles in your profile and let the loader fetch it. Requires DSH Desktop on Windows (the selection and annotation window is C# compiled at capture time); elsewhere the row is hidden.
index.js): registers POST /screenshot/v7/capture (guarded by a x-dsh-screenshot: 1 header plus a same-origin check) and GET /screenshot/v7/status. One PowerShell script declares per-monitor DPI awareness, grabs the whole virtual screen (SystemInformation.VirtualScreen, so all monitors) as the frozen frame, compiles editor.cs, and runs it. The result — the annotated crop, or a cancel — comes back through a small JSON file; the Host answers with a base64 data URL. The page cannot capture pixels itself (its Electron session denies display media and blocks http(s) subresources), so the pixels have to come from the Host process.editor.cs, shipped in the package and compiled with Add-Type at capture time): one borderless top-most WinForms window over the frozen frame does both phases — pick (DwmGetWindowAttribute window bounds, green frame + dim, drag rectangle with live dim and size badge, bottom hint), then annotate (floating white toolbar, on-demand colour/size row, GDI+ drawn icons, Compose() renders the selection at native resolution).client.js): registers one ctx.commandUi contribution (the row) and one conversation.input.overlay entry (the small failure card with a retry button). After the capture it first tries inputActions.addFiles, and otherwise dispatches a synthetic ClipboardEvent('paste') carrying a DataTransfer at the document — which is the supported door into the composer's document-level paste intake.Every capture is journaled to %TEMP%\dsh-screenshot.log (capture ok <w>x<h> in <ms>), and the editor's own log is copied to %TEMP%\dsh-screenshot-editor.log (hover changes, finish <action>); those two files are the first place to look if a click ever does nothing.
The + menu's grouping is hard-coded in @deepseek-ai/dsh-client-ui-commands:
const SECTION_ROWS = { add: ['file', 'goal', 'plan', 'feedback'], commands: ['compact', 'permission', 'model', 'export'] }
Only those four names land in the Add group; every other row — including plugin contributions — closes the Commands group. Taking one of the Add names is impossible: a contribution that collides with a built-in command throws while the menu is being built (ui-commands: contribution /<name> collides with a host command). So a plugin-owned row can appear in the Commands group only, and that is where this one is.
409 a selection is already open and shows a hint instead of stacking windows.Alt+Tab and other system shortcuts still work, and the frozen frame is what you get even if the desktop changes underneath.dsh plugin remove dsh-screenshot
It only adds one menu row, one overlay entry and two Host routes; nothing else is touched. The scrolling capture reuses the same window and the same route (?mode=scroll).
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。