[jawsscripts] Re: Template for event-based scripting of an app

  • From: Jamal Mazrui <empower@xxxxxxxxx>
  • To: JAWSScripts@xxxxxxxxxxxxx
  • Date: Mon, 4 Jan 2010 15:33:29 -0500 (EST)

Oops -- gotta get used to writing 2010!
Jamal



-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jamal Mazrui
Sent: Monday, January 04, 2010 3:28 PM
To: JAWSScripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Template for event-based scripting of an app

Now available at
http://EmpowermentZone.com/ScriptTemplate.zip

JAWS Script Template
Version 0.1
Public Domain by Jamal Mazrui
January 4, 2009

This is a template for a set of JAWS scripts to be associated with an 
application.  The first step in using it is to copy ScriptTemplate.jss and 
ScriptTemplate.jkm to Application.jss and Application.jkm -- where 
Application refers to the program you want to script for improved 
accessibility or usability.

The template contains about 60 event handler functions found in 
Default.jss of JAWS 11.0.  You would first define functions that test for 
application contexts based on characteristics such as window title, 
control type, and active cursor.  If automatic speech is not satisfactory 
after an event in a particular context, then you add code to the event 
handler function after testing for the context.  After all defined 
contexts have been tested for special handling, the event handler in 
Default.jss is called for any other contexts.

The template contains debugging support.  Shift+F12 toggles a debug mode 
in which each event is announced before the speech it produces, if any.
By default, all events are announced when debug mode is on.  Since this 
may produce too much speech when you are trying to isolate particular 
events, you can suppress the announcement for any particular event.  This 
is done by removing the semicolon from the following line in the event 
handler function:

; Let bNoDebug = True

Uncomment such a line in each event handler whose announcement you want to 
suppress in debug mode.

You can add other functions and scripts in Application.jss above the event 
handler functions.  An example of this template in action is the script 
set for Mozilla Thunderbird -- in fact, the template grew out of my 
experience scripting this application.  Those scripts are available at 
http://EmpowermentZone.com/tb_scr.exe

or .zip for a manual install.


Jamal Mazrui
Twitter screen name: JamalMazrui

The full ScriptTemplate documentation includes explanations by Freedom 
Scientific (from fsdn.chm) on all the events that JAWS can handle.


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