[jawsscripts] Changes in Scripts Runntime in the Latest JAWS 10 Release?

  • From: "Donald Marang" <donald.marang@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 19 Mar 2009 01:32:16 -0400

Has anyone noticed a change in the execcution of scripts in the newest JAWS 
10.0.1139 release?  When the latest update came out, my Verizon scripts started 
acting different.  Any time I place focus into the Results list view or change 
the item that has focus in the view, like using the up and down arrow keys, it 
produces a system beep!  At first, I thought the application was suddenly 
thinking there was an error and generating the beep.  I uninstalled and 
reinstalled the application.  No change!  I then packaged my current scripts 
with jsx, which I am still adjusting the merge aspects of my packaging, and 
installed again in a clean JAWS 9 directory.  When running the same exact 
scripts in JAWS 9 there are no beeps!  The scripts work properly.  
This is an application that does not seem to use MSAA, but I have set the 
MSAAMode=2 in the configuration file to force the triggering of the 
ItemChangedEvent function.  I will provide my itemChangedEvent below in case 
that helps.  I apologize for a link I previously provided for a webpage on my 
personal ISP webspace to explain and download the scripts.  It works fine for 
me, but evidemntly not "published" properly to allow access to others yet.  I 
will attempt to fix that tomorrow.  

Void Function ActiveItemChangedEvent (handle hWnd, int iCurrentID, Int 
iCurrentChild, handle hWndPrevious, Int iPreviousID, Int iPreviousChild)

SpeechOn ()

; SayString ("Current window = " + IntToString (hWnd))

; SayString ("Current ID = " + IntToString (iCurrentID)) ; returns -4, The 
arguments of -4 are indeed an MSAA thing: That's ObjID_Client, an indicator of 
which part of the window was responsible for the event

; SayString ("Current ID description = " + GetObjectDescription (False, 0)) ; 
returns the date of the item

; SayString ("Current ID ACC description = " + GetObjectContainerHelp ()) ; 
returns null

; SayString ("Current ID object name = " + GetObjectName (False, 0)) ; returns 
the item (name and date)

; SayString ("Current ID object state = " + GetObjectState (False, 0)) ; Should 
return "Selected"

; SayString ("Current ID object type = " + GetObjectType ()) ; returns "List 
Box Item"

; SayString ("Current ID value = " + GetObjectValue (False, 0)) ; returns null

; SayString ("Current child = " + IntToString (iCurrentChild)) ; Returns the 
item index

; SayString ("Previous window = " + IntToString (hWndPrevious))

; SayString ("Previous ID = " + IntToString (iPreviousID))

; SayString ("Previous child = " + IntToString (iPreviousChild))

If hWnd == ghWndResultsListView Then

Let giCurrentResultsItem = iCurrentChild

SayFormattedMessage (OT_MESSAGE, 

FormatString (MSG_PRE_LIST_ITEM_L, IntToString (giCurrentResultsItem)), 

FormatString (MSG_PRE_LIST_ITEM_S, IntToString (giCurrentResultsItem)))

If GetCharacterAttributes () & ATTRIB_BOLD Then 

SayMessage (OT_MESSAGE, MSG_NEW_L, MSG_NEW_S)

EndIf

; SayString ("Selection state = " + IntToString (lvGetItemState (hWnd, 
iCurrentChild) ))


; SayObjectActiveItem (True) ; Says the wrong number of items in list (1 of 11)

; SayObjectActiveItem (False) ; not able to reformat phone number in search 
results

If StringContains (gsResultsTitle, LIST_RECENT) Then

Let gsResultsName = lvGetItemText (hWnd, iCurrentChild, 1)

Let gsResultsDate = lvGetItemText (hWnd, iCurrentChild, 2)

SayFormattedMessage (OT_MESSAGE, 

FormatString (MSG_LIST_ITEM_L, gsResultsName,gsResultsDate), 

FormatString (MSG_LIST_ITEM_S, gsResultsName,gsResultsDate))


Else

Let gsResultsName = lvGetItemText (hWnd, iCurrentChild, 1)

Let gsResultsNumber = lvGetItemText (hWnd, iCurrentChild, 2)

Let gsResultsNumber = ReformatPhoneNumber (gsResultsNumber)

SayFormattedMessage (OT_MESSAGE, 

FormatString (MSG_LIST_ITEM_L, gsResultsName,gsResultsNumber), 

FormatString (MSG_LIST_ITEM_S, gsResultsName,gsResultsNumber))


EndIf


JAWSCursor ()

RouteJAWSToPc () ; move JAWS cursor to item to activate custom ToolTip to 
capture phone number in WindowActivatedEvent

LeftMouseButton () ; select item

PCCursor ()

Else

; Most likely in a JAWS dialog

; SayString ("Call to item changed and not in list view! Item = " + IntToString 
(iCurrentChild))

ActiveItemChangedEvent (hWnd, iCurrentID, iCurrentChild, hWndPrevious, 
iPreviousID, iPreviousChild)

EndIf

EndFunction



Don Marang


__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts:

  • » [jawsscripts] Changes in Scripts Runntime in the Latest JAWS 10 Release? - Donald Marang