Back to Registry
View Author Profile
Official Verified
Desktop Control Custom
Advanced desktop automation with mouse, keyboard, and screen control
skill-install — Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/alexbingquanxu-cpu/desktop-control-customOr
Desktop Control Skill
The most advanced desktop automation skill for OpenClaw. Provides pixel-perfect mouse control, lightning-fast keyboard input, screen capture, window management, and clipboard operations.
🎯 Features
Mouse Control
- ✅ Absolute positioning - Move to exact coordinates
- ✅ Relative movement - Move from current position
- ✅ Smooth movement - Natural, human-like mouse paths
- ✅ Click types - Left, right, middle, double, triple clicks
- ✅ Drag & drop - Drag from point A to point B
- ✅ Scroll - Vertical and horizontal scrolling
- ✅ Position tracking - Get current mouse coordinates
Keyboard Control
- ✅ Text typing - Fast, accurate text input
- ✅ Hotkeys - Execute keyboard shortcuts (Ctrl+C, Win+R, etc.)
- ✅ Special keys - Enter, Tab, Escape, Arrow keys, F-keys
- ✅ Key combinations - Multi-key press combinations
- ✅ Hold & release - Manual key state control
- ✅ Typing speed - Configurable WPM (instant to human-like)
Screen Operations
- ✅ Screenshot - Capture entire screen or regions
- ✅ Image recognition - Find elements on screen (via OpenCV)
- ✅ Color detection - Get pixel colors at coordinates
- ✅ Multi-monitor - Support for multiple displays
Window Management
- ✅ Window list - Get all open windows
- ✅ Activate window - Bring window to front
- ✅ Window info - Get position, size, title
- ✅ Minimize/Maximize - Control window states
Safety Features
- ✅ Failsafe - Move mouse to corner to abort
- ✅ Pause control - Emergency stop mechanism
- ✅ Approval mode - Require confirmation for actions
- ✅ Bounds checking - Prevent out-of-screen operations
- ✅ Logging - Track all automation actions
🚀 Quick Start
Installation
First, install required dependencies:
pip install pyautogui pillow opencv-python pygetwindow
Basic Usage
from skills.desktop_control import DesktopController
# Initialize controller
dc = DesktopController(failsafe=True)
# Mouse operations
dc.move_mouse(500, 300) # Move to coordinates
dc.click() # Left click at current position
dc.click(100, 200, button="right") # Right click at position
# Keyboard operations
dc.type_text("Hello from OpenClaw!")
dc.hotkey("ctrl", "c") # Copy
dc.press("enter")
# Screen operations
screenshot = dc.screenshot()
position = dc.get_mouse_position()
📋 Complete API Reference
Mouse Functions
move_mouse(x, y, duration=0, smooth=True)
Move mouse to absolute screen coordinates.
Parameters:
x(int): X coordinate (pixels from left)y(int): Y coordinate (pixels from top)duration(float): Movement time in seconds (0 = instant, 0.5 = smooth)smooth(bool): Use bezier curve for natural movement
Example:
# Instant movement
dc.move_mouse(1000, 500)
# Smooth 1-second move...
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-alexbingquanxu-cpu-desktop-control-custom": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.