-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Focus required for interactions #37
Comments
Try to |
I tried sending |
What do you mean with "top-level windows"? A window is always first level above Application. And you have to raise the window that contains your target element, not all. |
Some (not all) AX Objects for buttons and the like will have an attribute ".focused". Check if the ".focused" attribute is there and then set it to "true". Once you set this, then try your .performAction(.press). I found this was a requirement from Big Sur and later for some AX Objects. Use the Accessibility Inspector and see if an attribute "Keyboard Focused" is there and if it is set-able. |
I'm trying to build a sort of POC for a software remote controller to Keynote to pass slides and I found that whenever I click on my application's UI to trigger a Keynote change, nothing happens unless Keynote is in foreground, so I have to resort to cmd+clicking on my app so that Keynote remains foreground and then the
AXPress
event is sent and received by KeynoteI've tried using
AXRaise
to bring Keynote to front before sending theAXPress
event but I find that it's still not received.Is there something I'm doing wrong? How can I use AXSwift to bring Keynote to front so that my events are delivered?
Thanks!
The text was updated successfully, but these errors were encountered: