Registry / utility / enigo
library0.6.1rscratesunverified

Cross-platform (Linux, Windows, macOS & BSD) library to simulate keyboard and mouse events.

# Cargo.toml [dependencies] enigo = "0.6.1"
INSTALL
IMPORT
SIG · ENIGO
E
enigo
utilityrustv0.6.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Enigo
use enigo::Enigo;

Simulate a keyboard key press.

use enigo::Enigo; fn main() { let mut enigo = Enigo::new(); enigo.key_click(enigo::Key::Return); }
Debug
Known issues
gotchaOn Linux, requires X11 or Wayland display server; may not work in headless environments.
fix
Ensure a display server is running or use a virtual framebuffer like Xvfb.
affects: >=0.6.0
Upgrade
Version history
0.6.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources