desktop-control

Automates mouse, keyboard, screen capture, and window management operations on desktop environments.

39|1|Updated Jul 2, 2026
One-click install
npx skills add https://github.com/HKU-MMLab/UniClawBench --skill desktop-control-hku-mmlab
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: desktop-control
Source: https://github.com/HKU-MMLab/UniClawBench/tree/main/docker/base_skills/desktop-control
Command: npx skills add https://github.com/HKU-MMLab/UniClawBench --skill desktop-control-hku-mmlab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyautogui, pillow, opencv-python, pygetwindow, pyperclip.

What problem does it solve? Manually performing repetitive desktop interactions like clicking, typing, dragging files, and capturing screens is slow and error-prone. This Skill provides programmatic control over mouse, keyboard, screen, windows, and clipboard so agents can execute GUI workflows autonomously. ## Core Features & Use Cases - Mouse and Keyboard Automation: Move, click, drag, scroll, type text at configurable WPM, and execute hotkeys like Ctrl+C or Win+R through a DesktopController API built on PyAutoGUI. - Screen and Window Operations: Capture full or regional screenshots, read pixel colors, find images on screen via OpenCV template matching, and list or activate windows by title. - AI Task Agent: An AIDesktopAgent layer parses natural language tasks (e.g., "Draw a circle in Paint"), plans step sequences, executes them, and captures before/after screenshots for verification. - Use Case: Automate form filling by clicking fields, typing data at human-like speed, tabbing between inputs, and screenshotting the submitted result for audit. ## Quick Start Ask the agent to open Notepad and type a message, or call DesktopController to click coordinates and press hotkeys in your automation script.

Frequently Asked Questions about desktop-control

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate mouse clicks and keyboard typing in Python?▼

Use the DesktopController class wrapping PyAutoGUI: call click(x, y) for clicks, type_text("hello", wpm=60) for human-like typing, and hotkey('ctrl', 'c') for shortcuts. Initialize with DesktopController(failsafe=True) so moving the mouse to a screen corner aborts execution.

How to find and click an image on screen with Python?▼

Use find_on_screen(image_path, confidence=0.8), which relies on OpenCV template matching via PyAutoGUI's locateOnScreen. It returns the match's x, y, width, and height, so you can click the center coordinates of the found element.

Does PyAutoGUI desktop automation work with multiple monitors?▼

Yes, but secondary displays may use negative coordinates since screen coordinates start at (0, 0) on the primary monitor's top-left corner. Windows DPI scaling can also shift coordinate accuracy, so verify positions with get_mouse_position() and get_screen_size().

Why is simulated keyboard input not working in some applications?▼

Some applications, especially games and secure software, block synthetic input events. Ensure the target window has focus using activate_window(), try increasing the typing interval, and run Python with administrator privileges where required.

What are the limitations of AI-based desktop task planning?▼

The AIDesktopAgent currently uses rule-based pattern matching rather than a real LLM, so it only handles recognized patterns like drawing in Paint, typing in Notepad, and launching apps. Screen analysis lacks OCR and object detection, and game playing is experimental.