[jawsscripts] Re: Adding to DEFAULT.JSS and the Use statement

  • From: Jim Bauer <holdsworthfan@xxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 24 Dec 2008 23:35:08 -0600

The purpose of a use statement is to load the requested binary as part
of the calling configuration. Any script key assignments must be
entered manually.

Onto ToastEvent. Let's assume ToastEvent is in file toastevent.jss. A
simple use statement in default.jss that calls "toastevent.jsb" will
load  that binary as part of the default configuration.

Calling toastEvent(hwnd) from the default windowCreated,
windowActivated, helpBalloon, etc, events is one working approach to
this dilemma, provided the support code is contained within, or
accessible to, toastEvent.jsb.

Original message
from: "Donald Marang" <donald.marang@xxxxxxxxx>
subject: [jawsscripts] Adding to DEFAULT.JSS and the Use statement
date: Wed, 24 Dec 2008 23:24:20 -0500

>In my never ending attempt to tame Verizon Call Assistant, I have run into an 
>area I thought I knew how to handle.  But I was wrong!  I have an event 
>handler, WindowActivatedEvent in my application's script file.  I finally have 
>it working well.  It watches for changes in several windows, including a 
>custom HelpBalloon they call "Toast".  They Toast pop ups happen whenever the 
>phone rings or a voice mail has been received.  The event handler calls a 
>function, ToastEvent, when one of these windows appear.  This function 
>announces the Caller ID info and save it in global variables.  
>I want JAWS to announce these windows from any application.  I had extracted 
>the portion of the working WindowActivatedEvent dealing with trapping these 
>windows and placed it in a new script file named, 
>"VZCallAssistantDefault.JSS".  Instead of simply calling ToastEvent (hWnd), I 
>add the scope in the call as follows:
>VZCallAssistant::ToastEvent (hWnd)
>
>When I first tried this I had the BX Toolbox installed so I added the 
>following line to the DEFAULT.JSS file it created:
>Use "VZCallAssistantDefault.jsb"
>
>This seemed to work.  But my function was not fully debugged yet.  Since then, 
>I have had to uninstall all FS products and reinstall and then finally run a 
>registry cleaner to get JAWS talking again.  I have not reinstalled BX at this 
>point to work through a factory installation of my scripts.  
>
>Now that my JAWS seems to be working and the ToastEvent function works 
>correctly in the application, I tried to adjust DEFAULT.JSS again.  My JAWS 
>did not have a default script in my personal settings folder, so I opened 
>Script Manager and press Control + Shift + d.  I believe this copies the 
>shared default script file to the user's personal settings folder then this 
>default file overrides the shared default scripts.  When I add the "Use" line 
>again to the default file, it does not seem to get incorporated.  The function 
>never gets called.  I also added a second test script that simply spoke  MSAA 
>information about the current object.  The assigned key does nothing!  I have 
>always thought of the Use statement as a way of link in the code like  a 
>library.  I assumed this would make any assigned keys in the file being added 
>with an Use statement would show up in the default file in Keyboard Manager.  
>None of these things are working!  Am I missing something?  Am I doing these 
 s
> teps correctly?  Does the script auto installer perform these steps for the 
> end user?  
>
>Sorry to be long winded!  Merry Christmas.  My wife and kids are cleaning and 
>wrapping presents.  I am not very good at either of these.  I did do most of 
>the shopping though.
>
>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

__________ 
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: