[jawsscripts] Re: customizing default script file

  • From: Doug Lee <dgl@xxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Sun, 13 Nov 2022 10:06:16 -0500

You need a Use "default.jsb" line near the top of your default.jss file, to 
load the shared version.

On Sun, Nov 13, 2022 at 10:02:49AM -0500, Tony Hernandez wrote:
Hi,


I need to customize two of the default scripts, FocusChangedEventEx and 
KeyMapChangedEvent. I wrote a set of scripts that I want to work across 
all apps, so I don't wish to customize app-specific script files. The 
issue I'm running into is that when I create a new script source and 
enter the customized versions of my functions and then compile, I end up 
breaking JAWS completely until I open the shared default scripts and 
compile them to the user. Until then JAWS is trying to call other 
functions I didn't customize like WindowCreatedEvent, and even keeps 
trying to call FocusChangedEventEx, but the Unknown Function Call To 
error occurs instead.


It was my understanding that if I want to customize default scripts, I 
have to put in only the Scripts I want to customize along with the 
custom code and call the default versions when the custom action doesn't 
apply. Here's my code.


void function KeymapChangedEvent(int iKeyCode, string sKeyName, int 
iKeyStatus)
DoFocusChangedEventExActions ()
KeymapChangedEvent(iKeyCode, sKeyName, iKeyStatus)
EndFunction

void function FocusChangedEventEx (
     handle hwndFocus, int nObject, int nChild,
     handle hwndPrevFocus, int nPrevObject, int nPrevChild,
     int nChangeDepth)
DoFocusChangedEventExActions ()
FocusChangedEventEx (hwndFocus, nObject, nChild,hwndPrevFocus, 
nPrevObject, nPrevChild,nChangeDepth)

EndFunction


To clarify, it was my understanding that this is the only thing that 
should be in my user default script file and that JAWS would call the 
shared functions it doesn't find in the user file, but JAWS doesn't even 
seem to recognize my custom code. I even tried adding the default:: 
prefix to the lines where I call FocusChangedEventEx and 
KeyMapChangedEvent. Does anyone know what I'm doing wrong?


Tony

-- 
Doug Lee                 dgl@xxxxxxxx                http://www.dlee.org
The very smart may feel they have nothing to learn from anyone;
The very wise will find something to learn from everyone.  (7/14/01)
__________�

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

Other related posts: