Hi Chad, Thanks to you, I think I have an approach. Here's what I think I'll do. Tell me if you think it will work. I'll write a test script that speaks the x and y hierarchy information for whatever window the current cursor I'm using is in. I'll get that information and use it in new text event or whatever other scripts I come up with. I'll check to see if the text comes from the window by seeing if get window hierarchy x and get window hierarchy y match the two pieces of information I got manually. I would expect that the hierarchy information would be the same unless they make a new version of the program. Then, all bets are off. Thanks. Jim ---------- Jim Homme Usability Services 412-544-1810 james.homme@xxxxxxxxxxxx "You can do anything you want to if you put your mind to it" -- Jim Homme Sr. -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Chad Foster Sent: Tuesday, July 14, 2009 3:47 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Help With Automatic Window Reading Code Jim, I'd use the hierarchical relationship along with window classes to find the windows you seek. See if they are consistently 1st from the top, second from the last, etc. Based on that and the window classes, window visibility, and some other window attributes, you can likely write separate functions that get these window handles for you. Then you can easily compare the return values from these functions to event functions e.g. SayNonHighlightedText etc. HTH, Chad On 7/14/09, Homme, James <james.homme@xxxxxxxxxxxx> wrote: > Hi, > I'm attempting to write scripts for K-chess elite. I want JAWS to identify > and be able to read four windows either automatically or with a key press. I > want to toggle which window it reads automatically. I want to get it to read > any combination of the windows automatically. I have the following > situation. > > * When the program opens or I Alt Tab to it, I can always count on focus > landing in the same window. > > * The window I land in isn't one of the ones I want to read. > > * The other windows are all read only edit windows. > > * When the program first runs, the handle for each window is unique. > > * The control I D for each window is the same as its handle, so I can't > count on using the control I D to identify any of the windows. > > * I can always press the Tab key to get to the windows and I can always > count on being able to press Tab x number of times to get focus to go into > one of the windows. > > * I can always read the windows manually with the cursor if I want to. > > * I'd rather not have to simulate tab presses to find and read a window > either automatically or manually. > > * I think that two of the windows will always have the same line of text at > the top. > > * None of the windows is a real window. > > * I should have no trouble making the code to work for the verbosity tree > part of this. > > * I should be fine for the keyboard help part of it too. > > Any ideas about identifying and finding the windows to read other than > simulating tab presses? > > Thanks. > > Jim > > ---------- > Jim Homme > Usability Services > 412-544-1810 > james.homme@xxxxxxxxxxxx > > "You can do anything you want to if you put your mind to it" -- Jim Homme > Sr. > > > > This e-mail and any attachments to it are confidential and are intended > solely for use of the individual or entity to whom they are addressed. If > you have received this e-mail in error, please notify the sender immediately > and then delete it. If you are not the intended recipient, you must not > keep, use, disclose, copy or distribute this e-mail without the author's > prior permission. The views expressed in this e-mail message do not > necessarily represent the views of Highmark Inc., its subsidiaries, or > affiliates. > __________ > Visit and contribute to The JAWS Script Repository http://jawsscripts.com > > View the list's information and change your settings at > //www.freelists.org/list/jawsscripts > > -- Chad Foster Access Technology Solutions Leveling The Playing Field Through Technology http://www.GO-ATS.net __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at //www.freelists.org/list/jawsscripts This e-mail and any attachments to it are confidential and are intended solely for use of the individual or entity to whom they are addressed. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not keep, use, disclose, copy or distribute this e-mail without the author's prior permission. The views expressed in this e-mail message do not necessarily represent the views of Highmark Inc., its subsidiaries, or affiliates. __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at //www.freelists.org/list/jawsscripts