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

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