Windows screenshot

From malue-ai/dazee-small · View interactive version

Windows screenshot is an AI agent skill from the GitHub repository malue-ai/dazee-small. Capture screenshots on Windows using PowerShell and .NET APIs.

How to use this skill

Skill file

Windows 截图

使用 PowerShell 截取屏幕。

命令参考

全屏截图

Add-Type -AssemblyName System.Windows.Forms
$bitmap = [System.Windows.Forms.Screen]::PrimaryScreen
$bounds = $bitmap.Bounds
$screenshot = New-Object System.Drawing.Bitmap($bounds.Width, $bounds.Height)
$graphics = [System.Drawing.Graphics]::FromImage($screenshot)
$graphics.CopyFromScreen($bounds.Location, [System.Drawing.Point]::Empty, $bounds.Size)
$screenshot.Save("$env:TEMP\screenshot_$(Get-Date -Format 'yyyyMMdd_HHmmss').png")

使用 Snipping Tool

Start-Process "SnippingTool" "/clip"

输出规范

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.