2 ms·
If anyone is interested in writing the same in Rust(!) then there are two somewhat cross-platform libraries which can help: https://crates.io/crates/enigo http
by Tade0 5y ago
If anyone is interested in writing the same in Rust(!) then there are two somewhat cross-platform libraries which can help:
https://crates.io/crates/enigo https://crates.io/crates/enigo
https://crates.io/crates/device_query https://crates.io/crates/device_query
I coughed out a minimal example for your convenience:
https://wringing.it/blog/auto-hotkey-in-rust/ https://wringing.it/blog/auto-hotkey-in-rust/