ui-automation 0.1.1

Control the User Interface, cross-platform.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (C) 2024 Tristan Gerritsen <tristan@thewoosh.org>
// All Rights Reserved.

use ui_automation::UIAutomation;

fn main() {
    let ui = UIAutomation::new();

    for app in ui.applications() {
        println!("App {} {:?}", app.name(), app.owner().pid());
        for window in app.windows() {
            println!("  {} @ {}", window.title(), window.position());
        }
    }
}