[jawsscripts] Re: Adding context sensative keystrokes for IE
- From: "Chad Foster" <chad.foster@xxxxxxxxxx>
- To: jawsscripts@xxxxxxxxxxxxx
- Date: Sun, 30 Nov 2008 09:49:38 -0500
I have actually done this for a client or two, and it saves a
tremendous amount of time navigating and using Webpages. You will need
to do the following:
1. Determine the nonconflicting keystrokes to use. I used ALT+S,
ALT+N, ALT+P, ALT+`, and SHIFT+DELETE.
2. Write a script that maps certain HTML elements to the domain and
keystroke. I used a script tied to the CTRL+SHIFT+D keystroke, called
it the CustomizeDomain script, and run the user through a series of
dialog boxes where the user selects the HTML element for each
keystroke. For example, the give JAWS the name such as "Next," and
then assign an HTML element for that title such as for links, buttons,
form fields, etc. These must match the upper-case tags recognized by
JAWS e.g. A, INPUT, etc.
3. All of this is tied to the domain, so you will need to find out the
domain -- see the builtin GetRelevantAddressBarInfo for a good
starting point.
4. Once the dialogs are complete and you have your data, write these
values to an INI file.
5. then write the scripts for each of the keystrokes mentioned above
by: (1) determining the domain name of the current page, (2) reading
that from the INI file based on the keystroke in use, (3) figuring out
what element to look for, (4) using the "tag" functions to find and
move to a particular HTML tag, and then (5) clicking on that HTML tag
by using the ENTER script. Some of this will occur using the VPC, so
you will be running in ghost-mode until you find your HTML element.
Hope this helps,
Chad
On 11/30/08, E.J. Zufelt <everett@xxxxxxxxx> wrote:
> Good evening,
>
> What I would like to be able to accomplish is to add context sensative
> keystrokes to JAWS for use with Internet Explorer.
>
> Ideally the context would change based on the web-site that the user is
> navigating.
>
> So, on Yahoo.com Control + S might do one thing, while on Google.com it
> would do another.
>
> Ideally the user would not have to intervene for this to happen, it should
> be auto-sensing.
>
> My current thought is to bind the desired keystrokes to a single script
> within the Internet Explorer scripts and then to intaregate the DOM to
> determine which function to call based on all or part of the URL.
>
> Thanks for any thoughts,
> Everett
>
>
> __________
> 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
>
>
--
Chad Foster
Access Technology Solutions
Leveling The Playing Field Through Technology
http://www.GO-ATS.net
__________
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: