Re: Getting all window elements of application
Re: Getting all window elements of application
- Subject: Re: Getting all window elements of application
- From: James Dempsey <email@hidden>
- Date: Tue, 24 Aug 2010 10:38:07 -0700
Peresh,
Is the application with the panel the active application when you query it for accessibility information? In most apps, panels are hidden when the app is not frontmost, and so it would not be reported to accessibility.
You can make an app frontmost through accessibility by setting the AXFrontmost attribute to true.
-James
On Aug 24, 2010, at 12:28 AM, peresh wrote:
> Hi
>
> I have a problem getting the windows of an application.
>
> There are two windows in the application. One is a NSWindow object and the other a NSPanel object.
>
> I am trying to get the windows from the value of 'AXWindows' attribute on application element.
> Also tried to get the elements with role as 'AXWindow' among the children.
>
> (created the AXApplciation element using AXUIElementCreateApplication(runningApplication processIdentifier]);
> runningApplication is a NSRunningApplicaiton instance.
>
> The problem is that I am getting only one window as result (array of 1 window).
>
> Please suggest me a solution.
>
> Thanks
> Peresh
> _______________________________________________
> 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
--------------------------------------------------
James Dempsey
AppKit Engineering
Apple
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