noct 0.1.0

A cross-platform library to input simulation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use noct::{Key, KeyboardControllable, Noct};
use std::thread;
use std::time::Duration;

fn main() {
    thread::sleep(Duration::from_secs(2));
    let mut noct = Noct::new();

    // write text
    noct.key_sequence("Hello World! here is a lot of text  ❤️");

    // select all
    noct.key_down(Key::Control);
    noct.key_click(Key::Layout('a'));
    noct.key_up(Key::Control);
}