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
// Copyright (C) 2024 Tristan Gerritsen <tristan@thewoosh.org>
// All Rights Reserved.

use ui_automation::UIAutomation;

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

    println!("Mouse is @ {pos:?}");

    ui.set_cursor_position((500, 500));
    println!("Mouse is now @ {pos:?}");
}