enigo 0.0.5

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

Build Status Build Status Crates.io

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(1);
//only on linux currently
enigo.key_sequence("This → ❤ is a Hörz!!!");

for more look at examples