模拟键盘输入
use uiautomation::core::UIAutomation;
fn main() {
let automation = UIAutomation::new().unwrap();
let root = automation.get_root_element().unwrap();
root.send_keys("{Win}D", 10).unwrap();
}
1
2
3
4
5
6
7
2
3
4
5
6
7
上次更新: 2025/08/19, 08:47:47