返回顶部
w

wsl-screenshotWSL截图工具

Capture screenshots from WSL by calling Windows PowerShell. Use when user wants to take a screenshot from WSL environment, or needs screenshot functionality in WSL. Works on WSL2 by invoking Windows PowerShell to capture the primary screen.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.0.1
安全检测
已通过
86
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

wsl-screenshot

WSL 截图

使用 Windows PowerShell 从 WSL 捕获屏幕截图。

使用方法

截取屏幕截图

bash

运行截图脚本


~/.openclaw/workspace/skills/wsl-screenshot/scripts/screenshot.sh

输出:C:\Users\97027\Pictures\wslscreenshotYYYYMMDD_HHMMSS.png

向用户发送截图

截取屏幕截图后,通过消息发送:

bash

获取最新截图路径


LATEST=$(ls -t /mnt/c/Users/97027/Pictures/wslscreenshot*.png | head -1)

通过消息工具发送

message action=send media=$LATEST caption=📸 截图

或使用直接路径:
bash
message action=send media=/mnt/c/Users/97027/Pictures/wslscreenshotYYYYMMDD_HHMMSS.png

系统要求

  • - 配备 Windows 10/11 的 WSL2
  • PowerShell 位于 /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe

资源

  • - scripts/screenshot.sh - 截图脚本

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 wsl-screenshot-1775934087 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 wsl-screenshot-1775934087 技能

通过命令行安装

skillhub install wsl-screenshot-1775934087

下载

⬇ 下载 wsl-screenshot v0.0.1(免费)

文件大小: 1.92 KB | 发布时间: 2026-4-12 12:00

v0.0.1 最新 2026-4-12 12:00
Initial release of wsl-screenshot.

- Enables capturing screenshots from WSL2 by invoking Windows PowerShell.
- Saves screenshots directly to the Windows Pictures directory.
- Provides easy methods to send captured screenshots via message tools.
- Requires WSL2 and PowerShell installed on Windows 10/11.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部