autopilot 0.4.1

A simple, cross-platform GUI automation library for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate autopilot;

fn main() {
    let response = autopilot::alert::alert(
        "Hello, world!",
        Some("AutoPilot Alert"),
        Some("OK"),
        Some("Cancel"),
    );
    match response {
        autopilot::alert::Response::Default => println!("Accepted"),
        autopilot::alert::Response::Cancel => println!("Canceled"),
    }
}