Platforms to show: All Mac Windows Linux Cross-Platform

Back to AXObserverMBS class.

AXObserverMBS.AddNotification(element as AXUIElementMBS, notification 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
Adds a notification to the observer.

Returns an error code. (0 for no error and -1 if the function is not available)

Some examples using this method:

AXObserverMBS.Create(pid as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Accessibility MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Creates a new observer for the given process.

You need a valid process ID to observe the target application. The ProcessMBS class can help you.

AXObserverMBS.RemoveNotification(element as AXUIElementMBS, notification 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
Removes a notification from the observer.

Returns an error code. (0 for no error and -1 if the function is not available)

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


The biggest plugin in space...