Crates.io | enigo-copy |
lib.rs | enigo-copy |
version | 0.0.14 |
source | src |
created_at | 2023-03-23 15:36:20.782467 |
updated_at | 2023-03-23 15:36:20.782467 |
description | 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) |
homepage | https://github.com/enigo-rs/enigo |
repository | https://github.com/enigo-rs/enigo |
max_upload_size | |
id | 818427 |
size | 119,054 |
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 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
Please have a look at our changelog to find out what you have to do, if you used a previous version.