Platforms to show: All Mac Windows Linux Cross-Platform

Back to AccessibilityMBS module.

Previous items

AccessibilityMBS.kAXUnitDescriptionAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute constants.

AccessibilityMBS.kAXUnitsAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute constants.

AccessibilityMBS.kAXUnitsChangedNotification as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the layout area notification constants.

AccessibilityMBS.kAXUnknownOrientationValue as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A constant used for the AXUIElement class.

AccessibilityMBS.kAXUnknownRole as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the role names used for the AXUIElement class.

AccessibilityMBS.kAXUnknownSortDirectionValue as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A constant used for the AXUIElement class.

AccessibilityMBS.kAXUnknownSubrole as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the role names used for the AXUIElement class.

AccessibilityMBS.kAXURLAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute constants.

AccessibilityMBS.kAXURLDockItemSubrole as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the role names used for the AXUIElement class.

AccessibilityMBS.kAXValueAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute names used for the AXUIElement class.

AccessibilityMBS.kAXValueChangedNotification as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the notification names used for the axobserver class.

AccessibilityMBS.kAXValueDescriptionAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute constants.

AccessibilityMBS.kAXValueIncrementAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute names used for the AXUIElement class.

AccessibilityMBS.kAXValueIndicatorRole as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the role names used for the AXUIElement class.

AccessibilityMBS.kAXValueWrapsAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute names used for the AXUIElement class.

AccessibilityMBS.kAXVerticalOrientationValue as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A constant used for the AXUIElement class.

AccessibilityMBS.kAXVerticalScrollBarAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute names used for the AXUIElement class.

AccessibilityMBS.kAXVerticalUnitDescriptionAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute constants.

AccessibilityMBS.kAXVerticalUnitsAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute constants.

AccessibilityMBS.kAXVisibleCellsAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute constants.

AccessibilityMBS.kAXVisibleCharacterRangeAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute constants.

AccessibilityMBS.kAXVisibleChildrenAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute names used for the AXUIElement class.

AccessibilityMBS.kAXVisibleColumnsAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute names used for the AXUIElement class.

AccessibilityMBS.kAXVisibleRowsAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute names used for the AXUIElement class.

AccessibilityMBS.kAXVisibleTextAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute constants.

AccessibilityMBS.kAXWarningValueAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute constants.

AccessibilityMBS.kAXWindowAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute names used for the AXUIElement class.

AccessibilityMBS.kAXWindowCreatedNotification as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the notification names used for the axobserver class.

Some examples using this method:

AccessibilityMBS.kAXWindowDeminiaturizedNotification as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the notification names used for the axobserver class.

Some examples using this method:

AccessibilityMBS.kAXWindowMiniaturizedNotification as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the notification names used for the axobserver class.

Some examples using this method:

AccessibilityMBS.kAXWindowMovedNotification as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the notification names used for the axobserver class.

Some examples using this method:

AccessibilityMBS.kAXWindowResizedNotification as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the notification names used for the axobserver class.

Some examples using this method:

AccessibilityMBS.kAXWindowRole as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the role names used for the AXUIElement class.

AccessibilityMBS.kAXWindowsAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute names used for the AXUIElement class.

AccessibilityMBS.kAXYearFieldAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 11.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute constants.

Convenience attribute that yields the year field of a date field element.

AccessibilityMBS.kAXZoomButtonAttribute as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the attribute names used for the AXUIElement class.

AccessibilityMBS.kAXZoomButtonSubrole as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
One of the role names used for the AXUIElement class.

AccessibilityMBS.MakeAXValue(theCFObject as CFObjectMBS) as AXValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates an AXValue object containing the CFObject.

Actually only the RB object around the cfobject handle is replaced.
You can't do this using a cast in RB, so this function was created.

AccessibilityMBS.MakeAXValueFromCFRange(location as Integer, length as Integer) as AXValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 13.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates an AXValue object for a CFRange structure with the given values.
Example
// create with values and read them back
dim a as AXValueMBS = AccessibilityMBS.MakeAXValueFromCFRange(5, 9)

if a.AXIsCFRange then
dim lo, le as Integer

if a.AXGetCFRange(lo, le) then
MsgBox str(lo)+" "+str(le)
else
break // error
end if
else
break // error
end if

AccessibilityMBS.MakeAXValueFromCGPoint(x as single, y as single) as AXValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates an AXValue object for a CGPoint structure with the given values.

AccessibilityMBS.MakeAXValueFromCGRect(x as single, y as single, width as single, height as single) as AXValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates an AXValue object for a CGRect structure with the given values.

AccessibilityMBS.MakeAXValueFromCGSize(width as single, height as single) as AXValueMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates an AXValue object for a CGSize structure with the given values.

AccessibilityMBS.MakeProcessTrusted(path as string) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 13.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Attempts to make the process represented by the specified path a trusted accessibility client.

Use this function to make a process a trusted accessibility client.
Note: The caller must be running as root to successfully call this function. In addition, the caller should relaunch the process after this function returns successfully for the trusted status to take effect.

Path: The path to the executable of the process to make trusted.

Returns an error code that indicates success or failure.

AccessibilityMBS.SystemWideAXUIElement as AXUIElementMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a AXUIElement which covers the whole system.
Example

// displays the current window title if accessibility is enabled in Mac OS X 10.2 or newer
// your application needs permissions for accessibility to make this work!

dim SystemWideElement,FocusedApplicationElement,FocusedWindowElement as AXUIElementMBS
dim FocusedApplication,FocusedWindow,Title as AXValueMBS
dim s as String
dim cs as CFStringMBS

// show a window so there is one which can be found
window1.show

SystemWideElement=AccessibilityMBS.SystemWideAXUIElement
if SystemWideElement<>nil then
FocusedApplication=SystemWideElement.AttributeValue(AccessibilityMBS.kAXFocusedApplicationAttribute)
if FocusedApplication.Type=AccessibilityMBS.kAXUIElementMBSTypeID then
FocusedApplicationElement=new AXUIElementMBS
FocusedApplicationElement.Handle=FocusedApplication.Handle
FocusedApplicationElement.RetainObject

FocusedWindow=FocusedApplicationElement.AttributeValue(AccessibilityMBS.kAXFocusedWindowAttribute)

if FocusedWindow<>nil and AccessibilityMBS.kAXUIElementMBSTypeID=FocusedWindow.Type then

FocusedWindowElement=new AXUIElementMBS
FocusedWindowElement.Handle=FocusedWindow.Handle
FocusedWindowElement.RetainObject

Title=FocusedWindowElement.AttributeValue(AccessibilityMBS.kAXTitleAttribute)
if Title<>nil and Title.Type=kCFStringMBSTypeID then
cs=new CFStringMBS
cs.handle=Title.Handle
cs.RetainObject
msgbox cs.str
end if
end if
end if
end if

In the current implementation you can use this to get the AXUIElement for the frontmost application.

Some examples using this method:

Previous items

The items on this page are in the following plugins: MBS MacCF Plugin.


The biggest plugin in space...