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
use core::ffi::c_char;

use super::{AXStatus, Handle};

extern "C" {
    pub fn ax_action_copy_names(handle: Handle, out_value: *mut Handle) -> AXStatus;
    pub fn ax_action_copy_description(
        handle: Handle,
        action: *const c_char,
        out_value: *mut Handle,
    ) -> AXStatus;
    pub fn ax_action_perform(handle: Handle, action: *const c_char) -> AXStatus;
}