/enigo

Cross platform input simulation in Rust

Primary LanguageRustMIT LicenseMIT

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 X11 keyboard DSL
  • Linux Wayland mouse
  • Linux Wayland text
  • Linux Wayland keyboard DSL
  • macOS mouse
  • macOS text
  • macOS keyboard DSL
  • Win mouse
  • Win text
  • Win keyboard DSL
let mut enigo = Enigo::new();

enigo.mouse_move_to(500, 200);
enigo.mouse_click(MouseButton::Left);
enigo.key_sequence("hello world");

for more look at examples