Re: Positioning windows relative to windows not owned by my app
Re: Positioning windows relative to windows not owned by my app
- Subject: Re: Positioning windows relative to windows not owned by my app
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 29 Sep 2010 13:24:39 -0400
On Sep 29, 2010, at 9:59 AM, sam hart wrote:
> is there a workaround or a correct way to achieve this with the accesibility APIs?
The accessibility API will certainly give you window location and size for all applications. Use the appropriate AX functions to create a systemwide UI element and explore its attributes to get whatever information is on offer about all applications. I believe it will also give you the frontmost UI element and therefore the frontmost application.
I never investigated whether it gives you z-ordering for all applications. However, I would not be surprised to learn that it does not. Oversimplifying a little bit, the accessibility API is designed to reproduce what what a sighted user can see for the benefit of a non-sighted user. Sighted users cannot see the z ordering of all applications, only which application is currently frontmost.
--
Bill Cheeseman - email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden