fufesou 7a3e1fe648 fix: ->macos, mouse events, key flags (#9733) 4 veckor sedan
..
.github d1013487e2 source code 3 år sedan
.vscode 2d6075189d Cleanup 1 år sedan
examples 75aeb616e4 fix build example mouse.rs 1 år sedan
src 7a3e1fe648 fix: ->macos, mouse events, key flags (#9733) 4 veckor sedan
.gitattributes c1bad84a86 100% open source 2 år sedan
.gitignore d1013487e2 source code 3 år sedan
.travis.yml d1013487e2 source code 3 år sedan
Cargo.toml 8c91e5c5ca refact: update crate tfc (#8867) 3 månader sedan
LICENSE d1013487e2 source code 3 år sedan
README.md d1013487e2 source code 3 år sedan
appveyor.yml f45fdaa46f spelling: appveyor 1 år sedan
build.rs d1013487e2 source code 3 år sedan
rustfmt.toml d1013487e2 source code 3 år sedan

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