rustdesk/libs/enigo
geanfeng 9b6dbac3ed tag-1.4.0 2025-07-01 20:28:50 +08:00
..
.github/ISSUE_TEMPLATE tag-1.4.0 2025-07-01 20:28:50 +08:00
examples tag-1.4.0 2025-07-01 20:28:50 +08:00
src tag-1.4.0 2025-07-01 20:28:50 +08:00
.gitattributes tag-1.4.0 2025-07-01 20:28:50 +08:00
.gitignore tag-1.4.0 2025-07-01 20:28:50 +08:00
.travis.yml tag-1.4.0 2025-07-01 20:28:50 +08:00
Cargo.toml tag-1.4.0 2025-07-01 20:28:50 +08:00
LICENSE tag-1.4.0 2025-07-01 20:28:50 +08:00
README.md tag-1.4.0 2025-07-01 20:28:50 +08:00
appveyor.yml tag-1.4.0 2025-07-01 20:28:50 +08:00
build.rs tag-1.4.0 2025-07-01 20:28:50 +08:00
rustfmt.toml tag-1.4.0 2025-07-01 20:28:50 +08:00

README.md

Build Status Build status Dependency Status Docs Crates.io Discord chat Gitter chat

enigo

Cross platform input simulation in Rust!

  • Linux (X11) mouse
  • Linux (X11) text
  • Linux (Wayland) mouse
  • Linux (Wayland) text
  • MacOS mouse
  • MacOS text
  • Win mouse
  • Win text
  • Custom Parser
let mut enigo = Enigo::new();

enigo.mouse_move_to(500, 200);
enigo.mouse_click(MouseButton::Left);
enigo.key_sequence_parse("{+CTRL}a{-CTRL}{+SHIFT}Hello World{-SHIFT}");

for more look at examples

Runtime dependencies

Linux users may have to install libxdo-dev. For example, on Ubuntu:

apt install libxdo-dev

On Arch:

pacman -S xdotool