fufesou 7a3e1fe648 fix: ->macos, mouse events, key flags (#9733) | il y a 4 semaines | |
---|---|---|
.. | ||
.github | il y a 3 ans | |
.vscode | il y a 1 an | |
examples | il y a 1 an | |
src | il y a 4 semaines | |
.gitattributes | il y a 2 ans | |
.gitignore | il y a 3 ans | |
.travis.yml | il y a 3 ans | |
Cargo.toml | il y a 3 mois | |
LICENSE | il y a 3 ans | |
README.md | il y a 3 ans | |
appveyor.yml | il y a 1 an | |
build.rs | il y a 3 ans | |
rustfmt.toml | il y a 3 ans |
Cross platform input simulation in Rust!
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
Linux users may have to install libxdo-dev. For example, on Ubuntu:
apt install libxdo-dev
On Arch:
pacman -S xdotool