fufesou 7a3e1fe648 fix: ->macos, mouse events, key flags (#9733) 4 týždňov pred
..
.github d1013487e2 source code 3 rokov pred
.vscode 2d6075189d Cleanup 1 rok pred
examples 75aeb616e4 fix build example mouse.rs 1 rok pred
src 7a3e1fe648 fix: ->macos, mouse events, key flags (#9733) 4 týždňov pred
.gitattributes c1bad84a86 100% open source 2 rokov pred
.gitignore d1013487e2 source code 3 rokov pred
.travis.yml d1013487e2 source code 3 rokov pred
Cargo.toml 8c91e5c5ca refact: update crate tfc (#8867) 3 mesiacov pred
LICENSE d1013487e2 source code 3 rokov pred
README.md d1013487e2 source code 3 rokov pred
appveyor.yml f45fdaa46f spelling: appveyor 1 rok pred
build.rs d1013487e2 source code 3 rokov pred
rustfmt.toml d1013487e2 source code 3 rokov pred

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