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

  • From: "Homme, James" <james.homme@xxxxxxxxxxxx>
  • To: "jawsscripts@xxxxxxxxxxxxx" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 5 Jan 2010 11:07:53 -0500

Hi Jamal,
This is great. I started to put something like this together a long time ago.

Jim

Jim Homme,
Usability Services,
Phone: 412-544-1810

Internal recipients,  Read my accessibility blog

"If a green on green tree falls in the forest and you're there, can you see it?"
"Not unless you have a screen reader." :)


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


This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are addressed.  If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it.  If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
 The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.
__________ 
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: