windows-screenshot

Installation
SKILL.md

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

Related skills
Installs
3
GitHub Stars
32
First Seen
Mar 6, 2026