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
- Serialize/Deserialize
let mut enigo = new.unwrap;
enigo.move_mouse.unwrap;
enigo.button.unwrap;
enigo.text.unwrap;
For more look at the examples.
Runtime dependencies
Linux users may have to install libxdo-dev
if they are using X11
. For example, on Debian-based distros:
On Arch:
On Fedora:
On Gentoo:
Migrating from a previous version
Please have a look at our changelog to find out what you have to do, if you used a previous version.
Permissions
Some platforms have security measures in place to prevent programs from entering keys or controlling the mouse. Have a look at the permissions documentation to see what you need to do to allow it.