steelan9199 avatar

Pyautogui Automation

Desktop automation skill built on PyAutoGUI for screenshots, mouse and keyboard control, color detection, and image recognition.

CCM score
43 of 100
skills.sh installs
672
GitHub stars
10
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers screenshots, mouse clicks, drags, and scrolls, keyboard input and hotkeys, pixel color lookup, and on-screen image matching
  • Includes one scripts/automation.py entry point with JSON output, plus helper modules for mouse, keyboard, screen, color, dialog, and system info
  • Enforces PyAutoGUI's FAILSAFE corner stop and a 0.1 second pause after each action by default
  • Designed for UI testing and repetitive desktop tasks, with optional pywin32 and opencv-python for clipboard, window, and confidence-based matching

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

鼠标点击

Details

Repository
github.com/steelan9199/wechat-publisher
Categories
Workflow Automation, Browser Automation & Scraping
First seen
May 16, 2026

Similar to Pyautogui Automation

More Workflow Automation