Skip to content

Cross platform input simulation in Rust

License

Notifications You must be signed in to change notification settings

mira-screen-share/enigo

This branch is 4 commits ahead of, 394 commits behind enigo-rs/enigo:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8e5908a · Jul 23, 2023
Feb 27, 2023
May 27, 2017
Mar 27, 2023
Jul 23, 2023
Feb 27, 2023
Sep 16, 2017
Apr 3, 2023
Apr 3, 2023
Jan 27, 2017
Feb 27, 2023
Feb 13, 2023
Jul 12, 2017

Repository files navigation

Build status Docs Dependency status

Rust version 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 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.

About

Cross platform input simulation in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 96.9%
  • HTML 3.1%