18 releases
0.1.3 | Sep 1, 2023 |
---|---|
0.1.2 | Apr 3, 2023 |
0.1.1 | Mar 30, 2023 |
0.0.14 | Mar 7, 2020 |
0.0.7 | Feb 5, 2017 |
#23 in Hardware support
2,791 downloads per month
Used in 30 crates
(24 directly)
96KB
2K
SLoC
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 Debian-based distros:
apt-get install libxdo-dev
On Arch:
pacman -S xdotool
On Fedora:
dnf install libX11-devel libxdo-devel
On Gentoo:
emerge -a xdotool
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.
Dependencies
~0–50MB
~758K SLoC