rustdesk/libs/enigo
fufesou 00dc473703 linux_wayland_support: dup detecting function of x11 or wayland
Signed-off-by: fufesou <shuanglongchen@yeah.net>
2022-07-20 10:44:27 -07:00
..
.github/ISSUE_TEMPLATE source code 2021-03-29 15:59:14 +08:00
.vscode source code 2021-03-29 15:59:14 +08:00
examples https://github.com/rustdesk/rustdesk/issues/692 2022-06-07 00:30:37 +08:00
src linux_wayland_support: dup detecting function of x11 or wayland 2022-07-20 10:44:27 -07:00
.gitattributes 100% open source 2022-05-12 17:35:25 +08:00
.gitignore source code 2021-03-29 15:59:14 +08:00
.travis.yml source code 2021-03-29 15:59:14 +08:00
appveyor.yml source code 2021-03-29 15:59:14 +08:00
build.rs source code 2021-03-29 15:59:14 +08:00
Cargo.toml linux_wayland_support: dup detecting function of x11 or wayland 2022-07-20 10:44:27 -07:00
LICENSE source code 2021-03-29 15:59:14 +08:00
README.md source code 2021-03-29 15:59:14 +08:00
rustfmt.toml source code 2021-03-29 15:59:14 +08:00

Build Status Build status Dependency Status Docs Crates.io Discord chat Gitter chat

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 Ubuntu:

apt install libxdo-dev

On Arch:

pacman -S xdotool