[jawsscripts] Re: Query on Doug's bx Toolbox?

  • From: "Homme, James" <james.homme@xxxxxxxxxxxx>
  • To: "jawsscripts@xxxxxxxxxxxxx" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 23 Jul 2010 07:36:56 -0400

Hi Geoff,
The only way I can think of right now is to get the handle for the application 
main window, and loop through every window with enumerate child windows and 
check to see if a class repeats. This is untested, but maybe it would work. 
Make a global array of strings. write a call back function that simply adds the 
class of the handle of the window that enumerate child windows passes to it. 
When enumerate child windows is done, your global string array will contain the 
classes of all the windows in the application. Unfortunately I don't see 
anything that sorts an array, then you could use string compare to point at two 
indexes and compare them to see if the values they point to are equal. But I 
guess you could point at the first element of the array and then loop through 
the second through the last and see if any of those classes equal the first. If 
not, point to the second index and loop starting with the third. Then loop 
starting with the third pointing to the fourth. And each time you look through 
classes, the loop would be shorter. And finally, you'd either find two classes 
that are equal, or you'd be finished looping.

Jim
Jim Homme,
Usability Services,
Phone: 412-544-1810. Skype: jim.homme
Internal recipients,  Read my accessibility blog. Discuss accessibility here. 
Accessibility Wiki: Breaking news and accessibility advice


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Geoff Chapman
Sent: Friday, July 23, 2010 1:23 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Queery on Doug's bx ToolBox?

Scripters, can anyone tell me if there is a way, either without, or with, 
doug's Bx ToolBox installed, of asking the application quickly and easily,
if any other windows, have a particular class?
i.e. if  a window doesn't have a name, that is, it's blank, and I wana use 
findWindow to locate it uniquely, and so I'm restricted to class as the only 
uniquely identifying attribute of the window being searched for,
I just thought it'd be rather handy for me to easily be able to find out, if 
any other visible/non-disabled windows in the application, or even perhaps any 
of them, might have the same class? such that I might predetermine whether 
searching for a window with a given className only, might fail in unforseen 
circumstances?
thanks for any thoughts.

Geoff c.



__________�

View the list's information and change your settings at
http://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.
__________�

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

Other related posts: