You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thanks so much for this library. It works great for observing changes on windows etc.
However I cannot make it work to observe a MenuItem's Title changes in the app's MenuBar.
I can construct UIElement object that locates that MenuItem. It's the correct pointer, because I can perform an action successfully.
menuItem.performAction(kAXPressAction)
Is there some trick to achieve that or the app may be even broadcasting those events?
Snippet of my code: var menuItem = UIElement(getMenuItem()) //my function that returns the MenuItem as AXUIElement //try menuItem.performAction(kAXPressAction) //just a test if the pointer is working
Hey, thanks so much for this library. It works great for observing changes on windows etc.
However I cannot make it work to observe a MenuItem's Title changes in the app's MenuBar.
I can construct UIElement object that locates that MenuItem. It's the correct pointer, because I can perform an action successfully.
menuItem.performAction(kAXPressAction)
Is there some trick to achieve that or the app may be even broadcasting those events?
Snippet of my code:
var menuItem = UIElement(getMenuItem()) //my function that returns the MenuItem as AXUIElement
//try menuItem.performAction(kAXPressAction) //just a test if the pointer is working
try observer.addNotification(.titleChanged, forElement: menuItem)
No events are triggered using this code. I tried also Accessibility Inspector and the MenuItem has exact ID, and just changes it's Title (a toggle).
Thanks for any clue.
The text was updated successfully, but these errors were encountered: