百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
U

uiautomation-rs

> 编程语言
开源

uiautomation-rs 套件是一个用于 Windows uiautomation 的包装器。此套件可以帮助您方便地调用 Windows uiautomation API。

195 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

uiautomation-rs 套件是一个用于 Windows uiautomation 的包装器。此套件可以帮助您方便地调用 Windows uiautomation API。

Rust for windows uiautomation

The uiatomation-rs crate is a wrapper for windows uiautomation. This crate can help you make windows uiautoamtion API calls conveniently.

Usages

Start by adding the dependency of this crate to your Cargo.toml file. Make use of any windows uiautomation calls as needed.

Features

Supported Features

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

pattern is a feature that control depends on.

Default Features

  • input, control, pattern(introduced by the control dependency)

In order to be compatible with the version before v0.19.0, you should add process, dialog, event and clipboard features.

Examples

Print All UIElements

…

Open Notepad and Input Text

…

Get Properties As Variant

…

Simulate Keyboard Input

rust
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();
}

Add Event Handler

…

Capture Screenshot

…

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustrparustuiautomationwindows

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言