How to Use Kanata in a Rust Project to Send Keys on Windows? #1276
Replies: 1 comment
-
The key output mechanism isn't quite designed as a library but the primary kanata crate does expose a lib as well as a binary. I don't quite know how that works when consumed from crates.io though 🤔. If you can manage that, you could use these as an entry point: Create a kanata object with a minimal config, e.g. Line 416 in d54257a Then you can call Lines 78 to 80 in d54257a e.g. kanata/src/oskbd/windows/llhook.rs Line 242 in d54257a The |
Beta Was this translation helpful? Give feedback.
-
Is there a straightforward way to import Kanata into a rust project and utilize its functions for sending keystrokes to applications on Windows?
Beta Was this translation helpful? Give feedback.
All reactions