I am trying to write a tool to send mouse clicks to random positions
in an application for testing purposes. How I've been doing this so
far has been to generate a random position and then call
AXUIElementCopyElementAtPosition() with the system-wide element and
checking whether the resulting AXUIElement belongs to my target
application.
I've found a problem though: when the point I check is in the title
bar of an application, AXUIElementCopyElementAtPosition() fails with
the kAXErrorFailure condition. Has anybody out there got any ideas
why it might be doing this, or other suggestions as to how I should
determine which application is at a specified position?
Thanks,
-Greg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (
Accessibility-dev@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/accessibility-dev/subscriber%40opensubscriber.com
This email sent to
subscriber@open...
opensubscriber is not affiliated with the authors of this message nor responsible for its content.