Command Palette

Search for a command to run...

Назад к скиллам
скилл № 62940

Desktop Control

Advanced desktop automation with mouse, keyboard, and screen control

БесплатноБез исполняемых скриптов
eohmigот eohmig448 установок в других каталогах

Установить Desktop Control в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

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 movement
dc.move_mouse(1000, 500, duration=1.0)

move_relative(x_offset, y_offset, duration=0)

Move mouse relative to current position.

Parameters:

  • x_offset (int): Pixels to move horizontally (positive = right)
  • y_offset (int): Pixels to move vertically (positive = down)
  • duration (float): Movement time in seconds

Example:

# Move 100px right, 50px down
dc.move_relative(100, 50, duration=0.3)

click(x=None, y=None, button='left', clicks=1, interval=0.1)

Perform mouse click.

Parameters:

  • x, y (int, optional): Coordinates to click (None = current position)
  • button (str): 'left', 'right', 'middle'
  • clicks (int): Number of clicks (1 = single, 2 = double)
  • interval (float): Delay between multiple clicks

Example:

# Simple left click
dc.click()

# Double-click at specific position
dc.click(500, 300, clicks=2)

# Right-click
dc.click(button='right')

drag(start_x, start_y, end_x, end_y, duration=0.5, button='left')

Drag and drop operation.

Parameters:

  • start_x, start_y (int): Starting coordinates
  • end_x, end_y (int): Ending coordinates
  • duration (float): Drag duration
  • button (str): Mouse button to use

Example:

# Drag file from desktop to folder
dc.drag(100, 100, 500, 500, duration=1.0)

scroll(clicks, direction='vertical', x=None, y=None)

Scroll mouse wheel.

Parameters:

  • clicks (int): Scroll amount (positive = up/left, negative = down/right)
  • direction (str): 'vertical' or 'horizontal'
  • x, y (int, optional): Position to scroll at

Example:

# Scroll down 5 clicks
dc.scroll(-5)

# Scroll up 10 clicks
dc.scroll(10)

# Horizontal scroll
dc.scroll(5, direction='horizontal')

get_mouse_position()

Get current mouse coordinates.

Returns: (x, y) tuple

Example:

x, y = dc.get_mouse_position()
print(f"Mouse is
Полный SKILL.md на ClawHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Desktop Control?

Advanced desktop automation with mouse, keyboard, and screen control

Как установить скилл Desktop Control?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Desktop Control запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Desktop Control с