[jawsscripts] Re: Honoring Window Reclass

  • From: "Snowman" <snowman@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 6 Jun 2018 17:19:28 -0500

Doug,
Thanks for this.

Basically, the situation was that I wanted to intercept all sliders.  But, 
the actuall window class returned for some of them is nonstandard, so they 
had to be reclassed.  So, to identify a slider, I need to look for a bunchof 
different classes, unless I can intercept after the reclass takes place. 
So, that's what I was looking for, is an efficient  way to ask jaws if it 
thinks this is a slider, based on it's own logic, plus the 
reclassifications.

I can peruse the jcf, and build my own string of class names that equate to 
slider, and search the string.  I just thought there might be an easier way.



+--------------------------------------------------------------------------+
Listen to The Snowman on MushroomFM.com, Saturday evenings, 8PM Eastern 
time.
60's and 70's tunes, and gently conservative talk.

----- Original Message ----- 
From: "Doug Lee" <doug.lee@xxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Wednesday, June 06, 2018 4:24 PM
Subject: [jawsscripts] Re: Honoring Window Reclass


I see two possible meanings to yur question, so I'll tackle both:

1. How to figure out if a given window of a given class has been reclassed:

Window reclassing affects getWindowType*/Subtype* functions, such as 
getWindowTypeCode(). So you could test a window class and then its type or 
subtype code to see if it has been adjusted...

But JAWS itself sometimes reclasses windows as versions become newer... 
so...

2. How to tell if a user has reclassed a window:

Read the app's user-folder .jcf file, which is in the .ini format and thus 
easy to read with things like iniReadString. The only irregularity here is 
the pseudo-class "MSAA," which ends up in a different .jcf section from the
rest of the reclassings.

On Wed, Jun 06, 2018 at 03:50:32PM -0500, Snowman wrote:
Is there a preferred way to evaluate window class, taking window 
reclassification into account?
I can dig into where this is stored, and hack a way of doing it.  but, I 
wondered if there is a better way.
The scenario is some window class that you know is similar to something else 
that jaws knows about.  So, you use the reclassification wizard, to reclass 
it to be a slider, for example.
So, what I want to do, is to get the class of a window, and find out if it 
has been reclassified to a slider.
What's the right way to do that?



+--------------------------------------------------------------------------+
Listen to The Snowman on MushroomFM.com, Saturday evenings, 8PM Eastern 
time.
60's and 70's tunes, and gently conservative talk.

__________???

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

-- 
Doug Lee, Senior Accessibility Programmer
Level Access
mailto:Doug.Lee@xxxxxxxxxxxxxxx  http://www.LevelAccess.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
//www.freelists.org/list/jawsscripts

__________�

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

Other related posts: