[jawsscripts] Re: Help with a Problem Please

  • From: "Jon Squally" <jonsqually@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 7 May 2010 15:43:58 -0700

Hello Steve,

You might try this.  
int Function HandleCustomWindows (handle hWnd)
var
string sPriorWinName,
handle hPrior,
int iSubType
        let iSubtype = GetWindowSubtypeCode (hWnd)
let hPrior=GetPriorWindow (HWND)
let sPriorWinName=GetWindowName (hPrior)
if (GetWindowSubtypeCode (hwnd)==WT_treeView)
||(InHJDialog ())
then
return HandleCustomWindows (HWND)
endif
;you may want to put in more tests here, for specific subtypes, but...
SayWindowTypeAndText (hPrior)
;following line may not be what you want?
SayWindowTypeAndText (hWND)
;you may also want to try if this works
IndicateControlType (iSubType, sPriorWinName, GetWindowText (HWND, true))
Return true
;since I have not tested for subtypes above, this function as is may return
true most of the time.  
;you may need to test for subtypes as follows:
;If (iSubType==WT_edit)
;||(iSubType==WT_Combobox)
;then
EndFunction
IF the HandleCustomWindows function does not work for this, you may need to
look at FocusPointMovedEvent if Jaws does not see the focus change.  
HTH, Jon.
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Steve Matzura
Sent: Friday, May 07, 2010 05-32 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Help with a Problem Please

More research yields more info.

Turns out, that script didn't do diddly, even if I changed the assigned-to
key to Alt+F1 or something like that.  The script executes just fine, my
debug message speaks, but the window containing the field name message does
not speak.

I also noticed something very interesting about this application generally.
Without any scripting, the first field speaks its field name correctly when
tabbed to, but none of the subsequent ones do.
They are all located just to the left of the data entry area and are all of
the same color, so that can't be it.  Your thoughts gratefully and
graciously accepted.  I'll hold off on any more development until I hear
from someone because frankly, I'm stumped.
__________o?=

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

__________�

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

Other related posts: