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

  • From: "John Martyn" <johnrobertmartyn@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 4 Oct 2012 16:11:39 -0700

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

Other related posts: