# Windows Screenshot

> Capture screenshots on Windows using PowerShell and .NET APIs. Use when this capability is needed.

- Skill: `tomevault-io/windows-screenshot` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/windows-screenshot`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/windows-screenshot/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/windows-screenshot

---


# Windows 截图

使用 PowerShell 截取屏幕。

## 命令参考

### 全屏截图

```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

```powershell
Start-Process "SnippingTool" "/clip"
```

## 输出规范

- 默认保存到用户临时目录
- 截图完成后告知用户保存路径

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/malue-ai) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

