[jawsscripts] Re: SV: Re: Getting information from an application that is not in focus

  • From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Thu, 4 Oct 2012 19:18:18 -0400

Correct, getParent from most top-level windows will not return the
desktop window. As it happens, getParent from a window of class
ComboLBox will get it.

But FindTopLevelWindow does not take an hwnd. It allows you to find a
window that directly descends from the desktop without requiring you
to have the desktop window's handle.

On Thu, Oct 04, 2012 at 04:11:39PM -0700, John Martyn wrote:
In my experience GetParent(GetAppMainWindow()) does not return the desktop
even a few back as I've tried this in the past. Is this simply a windows XP
thing?
John Martyn

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Travis Roth
Sent: Thursday, October 04, 2012 2:20 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: SV: Re: Getting information from an application
that is not in focus

Hello,

You can still find this window.
FindTopLevelWindow() should do what you want, if you have a window class or
name.
It is equivalent to using findWindow() with a window handle of 0.
I have usually worked with the assumption that 0 is the desktop level in
Windows, however, Doug Lee has mentioned this is not always the case.

Nevertheless, FindTopLevelWindow should work, or if you use
GetAppMainWindow() then step a parent or two back from this by u

-- 
Doug Lee, Senior Accessibility Programmer
SSB BART Group - Accessibility-on-Demand
mailto:doug.lee@xxxxxxxxxxxxxxxx  http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller
__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: