steelan9199 avatar

Pyautogui Automation

A comprehensive desktop automation wrapper around PyAutoGUI that gives Claude control over mouse, keyboard, screenshots, and image recognition through a unified CLI interface. You get pixel-perfect color detection, region-based screenshot capture, and the ability to wait for specific images to appear or disappear on screen. The structure is clean with separate modules for mouse, keyboard, screen, and dialog operations, all returning JSON for easy parsing. Built-in failsafe triggers if you slam the mouse to the top-left corner, which is handy when things go sideways. Best for automating repetitive UI tasks, testing desktop apps, or building workflows that need to interact with applications without APIs. Supports Windows-specific features like active window detection if you have pywin32 installed.

skills.sh installs
671
GitHub stars
10
last updated
Aug 21, 2026

Install

$ npx -y skills add steelan9199/wechat-publisher --skill pyautogui-automation --agent claude-code

Installs into .claude/skills of the current project.

Files

PyAutoGUI 自动化操作

功能概览

功能类别支持的操作
截图全屏截图、区域截图、截图到剪贴板
鼠标控制点击、双击、移动、相对移动、拖拽、滚动、按下/释放
颜色操作获取像素颜色、查找颜色位置
键盘操作输入文本、按键、组合键、快捷操作(复制/粘贴/全选等)
图像识别在屏幕上查找图片位置、等待图片出现/消失
对话框警告、确认、输入对话框
系统信息屏幕分辨率、鼠标位置、窗口信息
工具等待、暂停

快速开始

基本使用模式

python scripts/automation.py <action> [参数...]

所有操作返回 JSON 格式结果。

脚本位置: scripts/automation.py

操作详解

截图

# 全屏截图(自动生成文件名)
python scripts/automation.py screenshot

# 指定输出路径
python scripts/automation.py screenshot --output my_screenshot.png

# 区域截图
python scripts/automation.py screenshot --output region.png --region 100,100,400,300

# 截图到剪贴板(需要安装 pywin32)
python scripts/automation.py screenshot_to_clipboard
python scripts/automation.py screenshot_to_clipboard --region 100,100,400,300

鼠标点击

Sponsors

Details

Repository
github.com/steelan9199/wechat-publisher
Category
Automation & Workflows
First seen
May 16, 2026

More from steelan9199/wechat-publisher

All 3
1sickn33 avatarviral-generator-buildersickn33/antigravity-awesome-skillsviral generator builder662skills.sh installs
2aradotso avatarpentestify-security-report-generatoraradotso/security-skillspentestify security report generator639skills.sh installs
3jamditis avatarfact-check-workflowjamditis/claude-skills-journalismStructured workflow for fact-checking claims in journalism. Use when verifying statements for publication, rating claims for fact-check articles, or building pr635skills.sh installs
4zhanghandong avatarmeta-cognition-parallelzhanghandong/rust-skillsmeta cognition parallel635skills.sh installs
5googleworkspace avatargws-apps-script-pushgoogleworkspace/cliGoogle Apps Script: Upload local files to an Apps Script project.620skills.sh installs
6patricio0312rev avatarbruno-collection-generatorpatricio0312rev/skillsGenerates Bruno collection files (.bru) from Express, Next.js, Fastify, or other API routes. Creates organized collections with environments, authentication, an617skills.sh installs