-
Notifications
You must be signed in to change notification settings - Fork 66
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
Please add windowNumber #97
Comments
See tmandry/x3#1 (comment). I'd accept a PR for a change that adds windowNumber as an optional property, because we cannot guarantee in a stable way that it will always be available. It would be fine to use the undocumented _AXUIElementGetWindow for this. |
@tmandry But some things are missing, or rather there is no way to extend them, because many properties and methods are internal let delegate: WindowDelegate If you use AXSwift then as I understand it there is AXUIElementRef almost everywhere Then everyone could make the necessary extensions For example, CGWindowID from AXUIElement or implement raize for a window |
A public API could be added that returned the AXUIElement for a given Window/Application. I actually thought I'd added one already. It would again have to be optional, to support testing use cases where there isn't a real UIElement to return. |
I don’t quite understand, but if you implement this, I’m ready to actively test it on a real project |
Any update for this? |
kCGWindowNumber
The text was updated successfully, but these errors were encountered: