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

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