-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
I'm trying to mute sound using keyboard using this program:
When i click the mute button it works and says Jackpot, but at the start of my program, it clicks the d lettter.
Rustc version: 1.71.1
Mki version: 0.2.3
use mki::{bind_any_key, Action, Keyboard};
use Keyboard::*;
fn main() {
println!("Hello, world!");
Other(173).click();
bind_any_key(Action::handle_kb(|key| {
println!("Pessed key: {:?}", key);
if let Other(173) = key {
println!("Jackpot !!");
}
}));
thread::sleep(Duration::from_secs(69));
/* $obj = new-object -com wscript.shell
$obj.SendKeys([char]173) */
}
Metadata
Metadata
Assignees
Labels
No labels