dsl.rs 302 B

123456789101112
  1. use enigo::{Enigo, KeyboardControllable};
  2. use std::thread;
  3. use std::time::Duration;
  4. fn main() {
  5. thread::sleep(Duration::from_secs(2));
  6. let mut enigo = Enigo::new();
  7. // write text and select all
  8. enigo.key_sequence_parse("{+UNICODE}{{Hello World!}} ❤️{-UNICODE}{+CTRL}a{-CTRL}");
  9. }