enigo 0.0.10

Enigo lets you control your mouse and keyboard in an abstract way on different operating systems (currently only Linux, macOS, Win – Redox and *BSD planned)
Documentation

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