Skip to content
Agentmart
Submit a tool
This entry duplicates desktop-control, which is the one we list in search.

desktop-control

Advanced desktop automation with mouse, keyboard, and screen control

Skill by badmarsh

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/badmarsh-desktop-control

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Advanced desktop automation with mouse, keyboard, and screen control

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions: not checked yet.

What's inside

Skill name
desktop-control
Description
Advanced desktop automation with mouse, keyboard, and screen control
License
MIT
Instructions
621 lines in SKILL.md Β· view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • name: missing
  • body: 621 lines (spec recommends under 500)

Files (9)

  • AI_AGENT_GUIDE.md
  • QUICK_REFERENCE.md
  • SKILL.md
  • __init__.py
  • _meta.json
  • ai_agent.py
  • demo.py
  • prompt_context.md
  • skill.toml

SKILL.md (first lines)

# 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:

```bash
pip install pyautogui pillow opencv-python pygetwindow
```

### Basic Usage

```python
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:**
```python
# 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:**
```python
# 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:**

From badmarsh/librefang, MIT.

Signals

Stars
0
Forks
0
Open issues
1
Last commit (this folder)
May 4, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from badmarsh

Cite this page

desktop-control skill. Agent Mart. https://agentmart.dev/skills/badmarsh-desktop-control (last updated 2026-10-24)