A very small AutoHotkey inspired library for creating global hotkeys, as well as emulating mouse and keyboard input.
Hotkeys can be created by matching input within a capture loop.
The code below demonstrates how to create a rapidfire hotkey for videogames.
```Rust extern crate inputbot;
use inputbot::; use Hotkey::; use KeybdHotkeyType::; use MouseHotkeyType::; use std::time::Duration; use std::thread::sleep;
fn main() { register(MouseHotkey(PressRight), || { while getlogicalstate(vk::RBUTTON) { mousepressleft(); sleep(Duration::frommillis(50)); mousereleaseleft(); } }); captureinput(); } ```
Check out the examples for more code samples, or read the documentation.