uiautomation-rs 套件是一个用于 Windows uiautomation 的包装器。此套件可以帮助您方便地调用 Windows uiautomation API。
uiautomation-rs 套件是一个用于 Windows uiautomation 的包装器。此套件可以帮助您方便地调用 Windows uiautomation API。
The uiatomation-rs crate is a wrapper for windows uiautomation. This crate can help you make windows uiautoamtion API calls conveniently.
Start by adding the dependency of this crate to your Cargo.toml file. Make use of any windows uiautomation calls as needed.
| Feature | Description | Default |
|---|---|---|
process |
Support process operations and filter by process id | False |
dialog |
Enable message boxes to show message | False |
input |
Support keyboard inputs | True |
clipboard |
Support clipboard operations | False |
pattern |
Support Microsoft UI Automation control patterns | - |
control |
Enable to wrapper ui element as control to simplify operations | True |
event |
Support Microsoft UI Automation events | False |
log |
Use log crate to print debug message | False |
screenshot |
Support screen capture with BMP/PNG output | False |
all |
Enable all the above features | False |
patternis a feature thatcontroldepends on.
input, control, pattern(introduced by the control dependency)In order to be compatible with the version before
v0.19.0, you should addprocess,dialog,eventandclipboardfeatures.
………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();
}……暂无开放 Issues,或尚未同步最近议题。