keyboard/
keyboard.rs

1use noct::{Key, KeyboardControllable, Noct};
2use std::thread;
3use std::time::Duration;
4
5fn main() {
6    thread::sleep(Duration::from_secs(2));
7    let mut noct = Noct::new();
8
9    // write text
10    noct.key_sequence("Hello World! here is a lot of text  ❤️");
11
12    // select all
13    noct.key_down(Key::Control);
14    noct.key_click(Key::Layout('a'));
15    noct.key_up(Key::Control);
16}