1
0
Fork
You've already forked rdotool
0
forked from 413x1nkp/rdotool
Easier to use than ydotool, faster to run than dotool. Built with enigo
  • Rust 100%
2025年02月04日 17:16:17 +07:00
src feat: add help command 2025年02月04日 17:16:17 +07:00
.gitignore 2025年02月03日 00:21:20 +07:00
Cargo.lock 2025年02月03日 00:21:20 +07:00
Cargo.toml docs: add LICENSE 2025年02月03日 00:22:42 +07:00
LICENSE docs: add LICENSE 2025年02月03日 00:22:42 +07:00
README.md docs: reformat supported commands list in README 2025年02月04日 09:41:22 +00:00

rdotool - Simple input automation

This is a Rust-based input automation tool combining simplicity of dotool with performance of ydotool. It's designed for both command-line and scripting use cases.

Features

  • Easier to use than other tools alike (i.e. ydotool)
  • Two operation modes: CLI arguments (argsv) and direct STDIN streaming
  • Key press simulation
  • Mouse position control (absolute coordinates)
  • Direct text typing, all keyboard-simulated
  • Key hold and release support for more complex interactions

Usage

Command-line mode (single action per command)

# Single key press
rdotool key Enter
# Type text directly
rdotool text "Hello, World!"
# Move mouse to absolute position X,Y
rdotool movemouse 600 400

STDIN mode (batch operations)

# Action sequence
echo '
 keydown ctrl
 keydown shift
 key right
 keyup shift
 keyup ctrl
' | rdotool
# Read actions from file
rdotool < commands.txt

Supported commands

Key presses

rdotool key A
rdotool key F11
rdotool key Escape
rdotool key right

Text input

rdotool text "これはかなりクールだ!"

Mouse control

rdotool mousemove 1920 1080

Key states (STDIN only)

keydown shift
keyup shift