static bool amIAuthorized () { if (AXAPIEnabled() != 0) { return true; } if (AXIsProcessTrusted() != 0) { return true; } return false; }
static bool hasAccessibilityAPIAuthorization () { if (AXAPIEnabled() != 0) { return true; } if (AXIsProcessTrusted() != 0) { return true; } return false; }