视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
techsmith-core-workflow-a【文档与办公】Build a bounded Windows Snagit image-capture workflow with the supported COM server, exact enums, asynchronous completion, and verified file output. Use when automating approved documentation captures. Trigger with "Snagit COM capture", "automate Snagit screenshot", or "Snagit file output".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: techsmith-core-workflow-a description: >- Build a bounded Windows Snagit image-capture workflow with the supported COM server, exact enums, asynchronous completion, and verified file output. Use when automating approved documentation captures. Trigger with "Snagit COM capture", "automate Snagit screenshot", or "Snagit file output". argument-hint: "[script-path] [approved-output-directory]" allowed-tools: Read, Glob, Grep, WebFetch, Write, Edit version: 1.6.0 author: Jeremy Longshore jeremy@intentsolutions.io license: MIT tags:
This skill implements the supported Snagit COM path without inventing a web API. It resolves the installed type library, creates Snagit.ImageCapture.1, sets an approved input/output, waits for asynchronous completion, and accepts a file only after success and path validation.
Use Read, Glob, and Grep to inspect local scripts, manifests, logs, and tests. Use WebFetch only for current primary TechSmith documentation. Use Write or Edit only after confirming the target repository file and approval boundary.
Snagit.ImageCapture.1 or the official sample's compatible SNAGIT.ImageCapture alias.0, window 1, region 4; use outputs file 2, clipboard 4.OutputImageFile options before invoking Capture() when file output is selected.Capture() as asynchronous; wait for IsCaptureDone, then check success and LastFileWritten.TechSmith desktop activation is not API authentication. Resolve individual sign-in versus business-key or approved offline activation before execution. Redact all keys, account identifiers, activation artifacts, and sensitive endpoint details.
LastCaptureSucceeded, canonicalize LastFileWritten, and reject paths outside the approved directory.Interactive capture can expose sensitive screen content. Require a named subject and operator approval; never default to the full desktop, clipboard, or an unrestricted destination.
Return product version, ProgID, input/output enums, elapsed time, success flag, canonical redacted path, file validation, and cleanup decision.
| Condition | Response |
|---|---|
| COM creation fails | Verify Windows installation and registration; stop before changing the registry. |
| Capture deadline exceeded | Cancel downstream work, preserve only redacted state, and require operator inspection. |
LastCaptureSucceeded false | Record capture state and error event data without accepting a file. |
| Output path escapes boundary | Quarantine the artifact and correct directory configuration. |
The example below shows the minimum redacted evidence expected from a successful invocation of this operator workflow.
$capture = New-Object -ComObject 'Snagit.ImageCapture.1'
$capture.Input = 1 # siiWindow
$capture.Output = 2 # sioFile
# Configure OutputImageFile, call Capture(), then wait with a deadline.