Platforms to show: All Mac Windows Linux Cross-Platform
Back to AXUIElementMBS class.
AXUIElementMBS.ActionDescription(action as CFStringMBS) as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Accessibility | MBS MacCF Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns nil on any error.
Some examples using this method:
AXUIElementMBS.ActionNames as CFArrayMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Accessibility | MBS MacCF Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns nil on any error.
Some examples using this method:
AXUIElementMBS.AttributeNames as CFArrayMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Accessibility | MBS MacCF Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
AXUIElementMBS.AttributeValue(attribute as CFStringMBS) as AXValueMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Accessibility | MBS MacCF Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
AXUIElementMBS.AttributeValues(attribute as CFStringMBS, minindex as Integer, maxindex as Integer) as CFArrayMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Accessibility | MBS MacCF Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
AXUIElementMBS.ElementAtPosition(x as single, y as single) as AXUIElementMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Accessibility | MBS MacCF Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
e.g. on a window.
AXUIElementMBS.GetAttributeValueCount(attribute as CFStringMBS) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Accessibility | MBS MacCF Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Some examples using this method:
AXUIElementMBS.IsAttributeSettable(attribute as CFStringMBS) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Accessibility | MBS MacCF Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns false on any error.
Some examples using this method:
AXUIElementMBS.PerformAction(action as CFStringMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Accessibility | MBS MacCF Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
AXUIElementMBS.PostKeyboardEvent(keyChar as Integer, virtualKey as Integer, keydown as boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Accessibility | MBS MacCF Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
You can only pass the root or application uielement.
The KeyCodesMBS class may help you to find the correct codes.
Synthesize keyboard events. Based on the values entered, the appropriate key down, key up, and flags changed events are generated.
If keyChar is NUL (0), an appropriate value will be guessed at, based on the default keymapping.
All keystrokes needed to generate a character must be entered, including SHIFT, CONTROL, OPTION, and COMMAND keys.
To find the virtual keys, well check the RB documentation for the keyboard class.
AXUIElementMBS.ProcessID as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Accessibility | MBS MacCF Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The unix PID.
AXUIElementMBS.SetAttributeValue(attribute as CFStringMBS, value as CFObjectMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Accessibility | MBS MacCF Plugin | 3.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Changed type of value to CFObject in plugin version 6.3. Before it was an AXValue.
The items on this page are in the following plugins: MBS MacCF Plugin.