[jawsscripts] Re: Control ID and Window Handle the same?

  • From: Steve Matzura <number6@xxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 05 Mar 2010 14:15:25 -0500

Hi, Jeff:

On Sat, 6 Mar 2010 00:21:28 +1100, you wrote:

>yep steve, my understanding is this is very common.

I knew somebody would eventually tell me that, especially after I
contacted the application's programmer, who told me he used some
dot-net development package.  Then I knew it was all over but the
crying <grin>.

>was talking to the snowman yesterday about this, and he's got tools in his 
>JLS utilities to test a window and let you know if it's gunna have 
>non-unique control ID's, making them obviously useless for window 
>identification.

I unfortunately (for me) know nothing about JLS, but think it's high
time I found out.  Could be sweet.

>just piping up to say your experience is normative, but of course can't give 
>you the good dirt on what to do to get around it. except by seeking to next 
>try other methods for grabbing the unique information desired. hierarchy I 
>believe, is one of them.

On that note, I tested the program with standard JAWS tools (read home
row) and discovered the stuff that's giving me fits are all at one
level of hierarchy and they all have no child or parent windows.  All
on one level!  Hard to believe, but this program is really quite
simple on the user interface side--not so on the data-keeping and
device-communication side.  It's a radio control program for scanners,
called Freescan.

>Jim's Jls utilities I discovered yesterday as he demonstrated them to me, 
>also have a neat feature where you put your focus in one window, your jaws 
>cursor in another, then hit a hotkey and it will seek to generate the code 
>for you, to traverse the window hierarchy to get from one to the other etc. 
>which may be of use to you as well.

I'll give it a try, but there is also something I neglected to mention
the first time around, and that is, that the button I'm after labeling
isn't always present.  In fact, there are four buttons of this type,
two of which are always present (even though logically they should not
be) and two of which come and go depending on conditions elsewhere on
the window and in the program.  This should be interesting.  Thanks
for the JLS tip.  I'll go have a play and report back.


>----- Original Message ----- 
>From: "Steve Matzura" <number6@xxxxxxxxxxxxx>
>To: "jawsscripts" <jawsscripts@xxxxxxxxxxxxx>
>Sent: Friday, March 05, 2010 10:51 PM
>Subject: [jawsscripts] Control ID and Window Handle the same?
>
>
>> Has anyone ever encountered the following?
>>
>> I have a program that does not assign non-varying control ID's to its
>> controls and other windows.  In fact, what it does do is to assign the
>> window handle, whatever it is, as the control ID for that window.  It
>> also has assigned the same name for every single control in the
>> program.  This make scripting most impossible from everything I've
>> learned about how to make decisions based on what control the
>> application cursor is on, since the information is not something to be
>> counted on because it always changes.  ANyone ever find this?
>> __________
>> 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
>>
>
>
>--------------------------------------------------------------------------------
>
>
>
>No virus found in this incoming message.
>Checked by AVG - www.avg.com
>Version: 8.5.435 / Virus Database: 271.1.1/2722 - Release Date: 03/04/10 
>19:34:00
>
>__________ 
>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
>
__________ 
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

Other related posts: