noct

Crates.ionoct
lib.rsnoct
version0.1.0
sourcesrc
created_at2023-01-11 12:38:56.410252
updated_at2023-01-11 12:38:56.410252
descriptionA cross-platform library to input simulation.
homepagehttps://github.com/rurskhakov/noct
repositoryhttps://github.com/ruriskhakov/noct
max_upload_size
id756382
size69,173
Rustem Iskhakov (ruriskhakov)

documentation

https://docs.rs/noct/

README

Noct

A cross-platform library for simulation of input written in Rust.

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

❗It's a enigo clone becase of parent repository is abandoned.

  • Linux (X11) mouse
  • Linux (X11) text
  • Linux (Wayland) mouse
  • Linux (Wayland) text
  • MacOS mouse
  • MacOS text
  • Win mouse
  • Win text
  • Custom Parser
let mut noct = Noct::new();

noct.mouse_move_to(500, 200);
noct.mouse_click(MouseButton::Left);
noct.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
Commit count: 0

cargo fmt