axuielement 0.9.1

Safe Rust bindings for Apple's AXUIElement — drive other apps' UIs (read attributes, perform actions) on macOS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::{AXStatus, Handle};

extern "C" {
    pub fn ax_system_wide_create() -> Handle;
    pub fn ax_system_wide_copy_focused_application(
        handle: Handle,
        out_element: *mut Handle,
    ) -> AXStatus;
    pub fn ax_system_wide_copy_focused_ui_element(
        handle: Handle,
        out_element: *mut Handle,
    ) -> AXStatus;
    pub fn ax_system_wide_copy_focused_window(handle: Handle, out_element: *mut Handle)
        -> AXStatus;
}