InputBot
Cross-platform (Windows & Linux) library for simulating keyboard/mouse input events and registering global input device event handlers.
Allows writing automation programs that collapse long action-sequences into single key-presses.
Usage
[]
= "0.6"
use ;
use ;
NOTE: The README and examples are based off the develop
branch of InputBot. If a feature is not working, you are probably using the version from crates.io. If you want to use the latest build, add this to your Cargo.toml:
[]
= { = "https://github.com/obv-mikhail/InputBot", = "develop" }
Check out examples for comprehensive examples on how to use each feature.
Build Dependencies
Debian or Ubuntu based distros
- libx11-dev
- libxtst-dev
- libudev-dev
- libinput-dev
Note: libinput requires InputBot to be run with sudo on Linux - sudo ./target/debug/<program name>
.
Examples
You can run the included examples by cloning the library and running cargo run --example <example name>
. Similar to the note above, on Linux you have to run cargo build --examples && sudo ./target/debug/<example name>
.
This is especially useful for testing the library when contributing.