Xpersona
W

windows-automation

CLAWHUB · Unverified

Automate Windows desktop tasks by launching apps, capturing screenshots, and simulating mouse and keyboard actions via PowerShell and Python scripts. Skill: windows-automation Owner: xiaodu Summary: Automate Windows desktop tasks by launching apps, capturing screenshots, and simulating mouse and keyboard actions via PowerShell and Python scripts. Tags: latest:1.0.0 Version history: v1.0.0 | 2026-03-25T09:44:04.503Z | user Windows Automation Skill v1.0.0 — Initial Release - Introduces automation of Windows desktop operations via PowerShell and Python scripts. - Sup

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17fhrsddm2h8xjx47pvgk9rr183g2jf:windows-automation-claw
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-xiaodu-windows-automation-claw/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

18,038 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: windows-automation
description: This skill should be used when the user needs to automate Windows desktop operations through PowerShell and Python scripts. Trigger phrases include: "打开应用" (open app), "截图" (screenshot), "移动鼠标" (move mouse), "点击" (click), "键盘输入" (keyboard input), "自动操作" (automate), "RPA" (robotic process automation), "模拟鼠标" (simulate mouse), "模拟键盘" (simulate keyboard), "控制应用" (control app), "窗口操作" (window operation). Use this skill for any Windows automation tasks involving application control, screen capture, mouse/keyboard simulation, or desktop interaction.
---

# Windows Automation Skill

## Overview

This skill enables Windows desktop automation through integrated PowerShell and Python scripts. It provides capabilities for launching applications, capturing screenshots, and simulating mouse/keyboard interactions. This skill is ideal for RPA (Robotic Process Automation) scenarios, automated testing, repetitive task automation, and controlling Windows applications programmatically.

## Trigger Phrases and Execution Logic

### Primary Trigger Phrases

**Application Control:**
- "打开 [应用名称]" (open [app name])
- "启动 [应用]" (launch [app])
- "关闭 [应用]" (close [app])
- "打开网站 [URL]" (open website [URL])

**Screenshot:**
- "截图" (screenshot)
- "截屏" (capture screen)
- "保存屏幕截图" (save screenshot)
- "截取窗口 [窗口标题]" (capture window [window title])

**Mouse Operations:**
- "移动鼠标到 (x, y)" (move mouse to)
- "点击" (click)
- "右键点击" (right click)
- "双击" (double click)
- "拖拽从 (x1, y1) 到 (x2, y2)" (drag from to)
- "滚动 [上/下]" (scroll [up/down])

**Keyboard Operations:**
- "输入文本 [文本]" (type text)
- "按下 [按键]" (press key)
- "组合键 [按键1] [按键2]" (combo key)
- "快捷键 [按键组合]" (hotkey)

## Core Capabilities

### 1. Application Launching (`app_launcher.py`)

Execute application control operations through the `app_launcher.py` script.

**Start an application:**
```bash
python scripts/app_launcher.py start "C:\Program Files\Notepad++\notepad++.exe"
```

**Open URL:**
```bash
python scripts/app_launcher.py url "https://www.google.com"
```

**List running processes:**
```bash
python scripts/app_launcher.py list
```

**Kill an application:**
```bash
python scripts/app_launcher.py kill "notepad"
```

**When to use:**
- User wants to open a specific application
- User wants to launch a website
- User needs to manage running processes
- User wants to close/terminate applications

### 2. Screen Capture (`screenshot.py`)

Execute screenshot operations through the `screenshot.py` script.

**Capture full screen:**
```bash
python scripts/screenshot.py screen "C:\Users\YourName\Desktop\screenshot.png" 0
```

**Capture specific window:**
```bash
python scripts/screenshot.py window "Notepad" "C:\Users\YourName\Desktop\notepad.png"
```

**List all visible windows:**
```bash
python scripts/screenshot.py list
```

**When to use:**
- User wants to capture the entire screen
- User wants to

_meta.json

{
  "ownerId": "kn77rfef1tb2e0hqx00mevq89n835k5v",
  "slug": "windows-automation-claw",
  "version": "1.0.0",
  "publishedAt": 1774431844503
}

skill-card.md

## Description:

Automate Windows desktop tasks by launching apps, capturing screenshots, and simulating mouse and keyboard actions via PowerShell and Python scripts.

This skill is ready for commercial/non-commercial use.

## Publisher:

[xiaodu](https://clawhub.ai/user/xiaodu)

### License/Terms of Use:

MIT-0

## Use Case:

Developers, QA engineers, and automation practitioners use this skill to perform Windows RPA-style desktop workflows, UI testing, data entry, and application control through command-line Python helpers.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can manipulate the live Windows desktop through mouse, keyboard, application launch, and process termination actions.

Mitigation: Use it only in controlled environments, require explicit confirmation for destructive or broad actions, and restrict allowed applications and processes.

Risk: Screenshot functions can capture visible information from the desktop or application windows.

Mitigation: Avoid sensitive screens, constrain screenshot output locations, and apply retention or redaction controls before sharing captured files.

Risk: PowerShell commands are built from user-provided values in several scripts.

Mitigation: Add strict input validation, argument allowlists, safe quoting or structured process APIs, and reject unexpected paths, process names, URLs, and window titles.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/xiaodu/skills/windows-automation-claw)
- [SKILL.md](artifact/SKILL.md)
- [Usage guide](artifact/使用说明.md)
- [Completion report](artifact/完成报告.md)

## Skill Output:

**Output Type(s):** [Text, Markdown, Shell commands, Files, Guidance]

**Output Format:** [Markdown guidance with inline shell commands and JSON-style script results]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Scripts can produce screenshots, process/window listings, and success/error result objects.]

## Skill Version(s):

1.0.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

使用说明.md

# Windows Automation Skill 使用说明

## 概述

Windows Automation Skill 是一个强大的Windows桌面自动化工具,通过PowerShell和Python脚本实现应用控制、屏幕截取、鼠标键盘模拟等功能。

## 触发词

### 应用控制
- 打开应用
- 启动应用
- 关闭应用
- 打开网站
- 启动URL

### 屏幕截图
- 截图
- 截屏
- 保存屏幕截图
- 截取窗口

### 鼠标操作
- 移动鼠标到指定位置
- 点击
- 右键点击
- 双击
- 拖拽
- 滚动

### 键盘操作
- 输入文本
- 按下按键
- 组合键
- 快捷键
- 键盘输入
- 模拟键盘

### 其他
- 自动操作
- 自动化
- RPA
- 模拟鼠标
- 控制应用
- 窗口操作

## 使用示例

### 示例1: 打开记事本并输入文字
```
用户: 打开记事本,输入"Hello World"

执行步骤:
1. 使用 app_launcher.py 启动 notepad.exe
2. 等待应用启动
3. 使用 keyboard_control.py 输入文本
4. 截图保存
```

### 示例2: 截取特定窗口
```
用户: 截取Chrome浏览器的窗口

执行步骤:
1. 使用 screenshot.py 列出所有窗口
2. 找到Chrome窗口标题
3. 使用 screenshot.py window 捕获窗口
4. 返回截图路径
```

### 示例3: 自动化表单填写
```
用户: 打开表单页面,自动填写姓名和邮箱

执行步骤:
1. 启动浏览器
2. 导航到表单URL
3. 使用鼠标控制定位到姓名输入框
4. 输入姓名
5. 移动到邮箱输入框
6. 输入邮箱
7. 提交表单
```

## 可用脚本

### 1. app_launcher.py
应用启动和进程管理

**命令:**
- `python app_launcher.py start <路径>` - 启动应用
- `python app_launcher.py url <URL>` - 打开网址
- `python app_launcher.py list` - 列出运行的进程
- `python app_launcher.py kill <进程名>` - 结束进程

### 2. screenshot.py
屏幕和窗口截图

**命令:**
- `python screenshot.py screen [路径] [显示器]` - 全屏截图
- `python screenshot.py window <窗口标题> [路径]` - 窗口截图
- `python screenshot.py list` - 列出所有窗口

### 3. mouse_control.py
鼠标控制

**命令:**
- `python mouse_control.py move <x> <y>` - 移动鼠标
- `python mouse_control.py click [按键] [x] [y] [次数]` - 点击
- `python mouse_control.py drag <x1> <y1> <x2> <y2> [时长]` - 拖拽
- `python mouse_control.py scroll [方向] [次数]` - 滚动
- `python mouse_control.py position` - 获取当前位置

### 4. keyboard_control.py
键盘控制

**命令:**
- `python keyboard_control.py type <文本> [间隔]` - 输入文本
- `python keyboard_control.py key <按键>` - 按下单个键
- `python keyboard_control.py combo <按键1> <按键2> ...` - 组合键
- `python keyboard_control.py hotkey <按键1> <按键2> ...` - 快捷键

## 支持的按键

**字母键:** a, b, c, ..., z
**数字键:** 0, 1, 2, ..., 9
**特殊键:** space, enter, tab, backspace, escape, delete, insert, home, end, pageup, pagedown
**方向键:** up, down, left, right
**功能键:** f1, f2, ..., f12
**修饰键:** ctrl, alt, shift, win

## 注意事项

1. 所有脚本都返回JSON格式结果,包含 `success` 和 `message` 字段
2. 执行操作时需要适当的延迟,让UI有时间响应
3. 鼠标坐标是绝对屏幕坐标,(0,0)为屏幕左上角
4. 多显示器环境需要指定显示器索引
5. 某些操作可能需要管理员权限

## 常见问题

**Q: 为什么应用启动失败?**
A: 检查应用路径是否正确,确保应用确实存在

**Q: 截图失败怎么办?**
A: 检查窗口标题是否正确,确认目标窗口可见

**Q: 鼠标点击无效?**
A: 检查坐标是否正确,确保目标窗口在前台

**Q: 键盘输入不正确?**
A: 确认按键名称是否在支持列表中,检查是否有输入法干扰

完成报告.md

# Windows Automation Skill 创建完成报告

## 创建时间
2026年3月25日

## 技能信息
- **名称**: windows-automation
- **类型**: 用户级技能 (User Skill)
- **位置**: `C:\Users\Administrator\.codebuddy\skills\windows-automation`
- **打包文件**: `C:\Users\Administrator\.codebuddy\skills\windows-automation.zip`

## 技能描述

Windows Automation Skill 是一个Windows桌面自动化工具,通过PowerShell和Python脚本实现以下功能:

1. **应用控制**: 打开、启动、关闭Windows应用程序
2. **屏幕截图**: 全屏截图、指定窗口截图
3. **鼠标控制**: 移动、点击、拖拽、滚轮操作
4. **键盘控制**: 文本输入、按键模拟、组合键操作

## 触发词定义

### 应用控制类
- 打开应用
- 启动应用
- 关闭应用
- 打开网站
- 启动URL

### 屏幕截图类
- 截图
- 截屏
- 保存屏幕截图
- 截取窗口

### 鼠标操作类
- 移动鼠标到指定位置
- 点击
- 右键点击
- 双击
- 拖拽
- 滚动

### 键盘操作类
- 输入文本
- 按下按键
- 组合键
- 快捷键
- 键盘输入
- 模拟键盘

### 其他触发词
- 自动操作
- 自动化
- RPA
- 模拟鼠标
- 控制应用
- 窗口操作

## 执行逻辑

### 1. 应用控制 (app_launcher.py)
```bash
python app_launcher.py start "应用路径"     # 启动应用
python app_launcher.py url "https://..."     # 打开网址
python app_launcher.py list                 # 列出运行的进程
python app_launcher.py kill "进程名"        # 结束进程
```

### 2. 屏幕截图 (screenshot.py)
```bash
python screenshot.py screen [路径] [显示器]        # 全屏截图
python screenshot.py window "窗口标题" [路径]      # 窗口截图
python screenshot.py list                          # 列出所有窗口
```

### 3. 鼠标控制 (mouse_control.py)
```bash
python mouse_control.py move <x> <y>                     # 移动鼠标
python mouse_control.py click [按键] [x] [y] [次数]     # 点击
python mouse_control.py drag <x1> <y1> <x2> <y2> [时长] # 拖拽
python mouse_control.py scroll [方向] [次数]           # 滚动
python mouse_control.py position                       # 获取当前位置
```

### 4. 键盘控制 (keyboard_control.py)
```bash
python keyboard_control.py type "文本" [间隔]           # 输入文本
python keyboard_control.py key <按键>                  # 按下单个键
python keyboard_control.py combo <按键1> <按键2> ...    # 组合键
python keyboard_control.py hotkey <按键1> <按键2> ...   # 快捷键
```

## 文件结构

```
windows-automation/
├── SKILL.md                    # 技能主文档
├── 使用说明.md                # 中文使用说明文档
└── scripts/                    # 脚本目录
    ├── app_launcher.py         # 应用启动器
    ├── screenshot.py           # 屏幕截图
    ├── mouse_control.py        # 鼠标控制
    └── keyboard_control.py     # 键盘控制
```

## 技能特点

### 1. 模块化设计
- 每个功能独立为Python脚本
- 可单独使用也可组合使用
- 支持命令行参数调用

### 2. JSON输出格式
- 所有脚本返回统一的JSON格式
- 包含success、message和data字段
- 便于程序化处理和错误判断

### 3. 跨脚本协作
- 脚本之间可以相互配合
- 例如: 启动应用 → 定位窗口 → 截图
- 支持复杂的自动化流程

### 4. 错误处理
- 每个脚本都有完整的异常处理
- 返回明确的错误信息
- 支持超时控制

## 测试验证

### 测试1: 进程列表
```bash
python app_launcher.py list
```
✅ 成功返回系统所有运行的进程列表

### 测试2: 窗口列表
```bash
python screenshot.py list
```
✅ 成功返回所有可见窗口的信息

### 测试3: 鼠标位置
```bash
python mouse_control.py position
```
✅ 成功返回当前鼠标坐标

## 使用场景示例

### 场景1: 自动化测试
1. 启动被测应用
2. 定位到测试窗口
3. 执行鼠标点击操作
4. 输入测试数据
5. 截图保存测试结果

### 场景2: 数据录入
1. 打开数据录入系统
2. 使用键盘输入批量数据
3. 使用鼠标导航到不同字段
4. 保存并提交

### 场景3: RPA流程
1. 打开业务系统
2. 自动填写表单
3. 提交并获取结果
4. 截图保存
5. 关闭应用

## 支持的按键

**字母键**: a-z

Sponsored

Ads related to windows-automation and adjacent AI workflows.