Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Determining screen coverage of an application



I'm developing a testing tool that will be sending random mouse clicks to an application, and I want to make sure that it only sends clicks with valid coordinates for the application. How can I determine whether or not a coordinate point falls within one of my target application's windows? I can walk the AXUIElement tree and figure out the application's window positions and sizes, but that won't help me with the rounded edges on windows and drawers.

The Window Server is able to determine what application the cursor is over so that it can properly route mouse events; is there any way that I can get it to share that knowledge with me about an arbitrary point?

-Greg

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.