Desktop Control
БесплатноБез исполняемых скриптовНе проверенAdvanced desktop automation with mouse, keyboard, and screen control 核心能力: - 效率工具领域的专业化AI辅助工具 - 基于高人气开源Skill深度优化升级 - 移除风险代码,增强安全性和稳定性 适用场景: - 工作流自动化、任务调度、批处理…
от thcjp721 установка в других каталогахОб этом скилле
Desktop Control
The most advanced desktop automation skill for Skill平台. 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
dc = DesktopController(failsafe=True)
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
dc.type_text("Hello from Skill平台!")
dc.hotkey("ctrl", "c") # Copy
dc.press("enter")
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:
dc.move_mouse(1000, 500)
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:
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:
dc.click()
dc.click(500, 300, clicks=2)
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 coordinatesend_x, end_y(int): Ending coordinatesduration(float): Drag durationbutton(str): Mouse button to use
Example:
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:
dc.scroll(-5)
dc.scroll(10)
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 at: {x}, {y}")
Keyboard Functions
type_text(text, interval=0, wpm=None)
Type text with configurable speed.
Parameters:
text(str): Text to typeinterval(float): Delay between keystrokes (0 = instant)wpm(int, optional): Words per minute (overrides int
Установить Desktop Control в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Desktop Control?
Advanced desktop automation with mouse, keyboard, and screen control 核心能力: - 效率工具领域的专业化AI辅助工具 - 基于高人气开源Skill深度优化升级 - 移除风险代码,增强安全性和稳定性 适用场景: - 工作流自动化、任务调度、批处理 - 独立开发者与一人公司效率提升 - 自动化工作流与智能决策辅助 差异化:经过深度优化,去除原始风险代码,清理外部依赖引用,增强元数据和触发关键词,完全适配SkillHub平台规范。 触发关键词: mouse, automation, advanced, control, desktop
Как установить скилл Desktop Control?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Desktop Control запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic