Files
rustdesk/libs/enigo
rustdeskandClaude Opus 5.5 f72946d71c fix(clipboard,enigo): bound served-list reads, clamp absolute moves
wf_cliprdr: the served-list branch runs before the ownership check, yet it
allocated the peer's cbRequested (up to 4 GiB) before looking the list up.
Accept only FILECONTENTS_SIZE or a range of at most 16 MiB there, which is
all that clients sending an id ever request, and fail anything else before
allocating.

enigo: clamp the scaled absolute coordinate to 0..=65535, the range
MOUSEEVENTF_ABSOLUTE takes, instead of to the i32 range. Coordinates on the
virtual desktop give the same result as before; off-desktop ones now land on
its edge.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 18:01:24 +08:00
..
2021-03-29 15:59:14 +08:00
2022-12-25 19:23:03 +03:00
2023-06-07 21:17:13 +08:00
2022-05-12 17:35:25 +08:00
2021-03-29 15:59:14 +08:00
2021-03-29 15:59:14 +08:00
2023-01-09 12:58:33 -05:00
2021-03-29 15:59:14 +08:00
2021-03-29 15:59:14 +08:00
2021-03-29 15:59:14 +08:00
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