Pure PowerShell GDI+ screenshot tool for Windows. No external dependencies, captures to PNG with automatic scaling.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install windows-screenshot或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install windows-screenshot⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/windows-screenshot/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: windows-screenshot description: Pure PowerShell GDI+ screenshot tool for Windows. No external dependencies, captures to PNG with automatic scaling. homepage: https://github.com/vvxer/windows-screenshot repository: https://github.com/vvxer/windows-screenshot metadata: openclaw: emoji: "📸" requires: env: [] install: [] ---
一个纯 PowerShell 的屏幕截图工具,使用 GDI+ 捕获 Windows 屏幕。
本技能的所有代码都完全开放在 GitHub 上,可供审查:
这不是"下载执行"的方式。脚本代码是自包含的,在技能包中可直接审查。
本技能包中包含 screenshot.txt(PowerShell 脚本内容)。使用时:
screenshot.txt 复制或重命名为 screenshot.ps1
powershell -File screenshot.ps1
或者直接使用 GitHub 仓库中的脚本。
脚本会自动检查以下环境变量(可选):
OPENCLAW_MEDIA_DIR - 自定义输出目录
- 若未设置,默认使用 $USERPROFILE\.openclaw\media
- 脚本会自动创建此目录
PowerShell:
$env:OPENCLAW_MEDIA_DIR = "C:\MyScreenshots"
powershell -File screenshot.ps1
Command Prompt:
set OPENCLAW_MEDIA_DIR=C:\MyScreenshots
PowerShell -File screenshot.ps1
powershell -File screenshot.ps1
输出:
MEDIA:C:\Users\YourUsername\.openclaw\media\screenshot_YYYYMMDD_HHMMSS.png
openclaw exec powershell -File screenshot.ps1
# 步骤 1:捕获截图
openclaw exec powershell -File screenshot.ps1
# 步骤 2:发送(需要 TELEGRAM_BOT_TOKEN 和用户 ID)
openclaw message send --channel telegram --target YOUR_USER_ID --media /path/to/screenshot.png
脚本将截图保存为 PNG:
.openclaw/media/screenshot_YYYYMMDD_HHMMSS.png
并输出 MEDIA: 前缀路径用于后续处理。
| 属性 | 值 | |------|-----| | 图像库 | System.Drawing (GDI+) | | 格式 | PNG 24-bit | | 分辨率 | 自适应(根据屏幕缩放) | | 文件大小 | 通常 50-200 KB | | 依赖 | .NET Framework 4.x+(Windows 内置) |
| 问题 | 解决方案 | |------|---------| | "找不到类型 System.Drawing" | 在 .NET Framework 4.x+ 上运行(Windows 默认) | | 图像全黑 | 检查屏幕/GPU 状态;确保不在锁屏 | | 文件名冲突 | 脚本使用时间戳自动避免重复 |
MIT-0 - 无署名、无限制使用、修改和分发。
---
✅ 所有代码都是开源的且经过审查
.openclaw/media 目录
源码:https://github.com/vvxer/windows-screenshot
安装 Windows Screenshot 后,可以对 AI 说这些话来触发它
Help me get started with Windows Screenshot
Explains what Windows Screenshot does, walks through the setup, and runs a quick demo based on your current project
Use Windows Screenshot to pure PowerShell GDI+ screenshot tool for Windows
Invokes Windows Screenshot with the right parameters and returns the result directly in the conversation
What can I do with Windows Screenshot in my design & creative workflow?
Lists the top use cases for Windows Screenshot, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/windows-screenshot/ 目录(个人级,所有项目可用),或 .claude/skills/windows-screenshot/(项目级)。重启 AI 客户端后,用 /windows-screenshot 主动调用,或让 AI 根据上下文自动发现并使用。
Windows Screenshot 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Windows Screenshot 可免费安装使用。请查阅仓库了解许可证信息。
Pure PowerShell GDI+ screenshot tool for Windows. No external dependencies, captures to PNG with automatic scaling.
Windows Screenshot 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Windows Screenshot
Identifies repetitive steps in your workflow and sets up Windows Screenshot to handle them automatically