[jawsscripts] Re: Element attribute values.

  • From: "Sean Randall" <seanr@xxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sun, 3 May 2009 23:55:47 +0100


When I was writing some scripts for the Thunderbird mail client one of my
pet problems was the problem of moving between messages.

In outlook etc, you have dedicated keys to go to the next or  previous item
whilst already inside one, in outlook its ctrl+> for instance.  Thunderbird
uses letters "f" and "n" etc, and I wanted a way of keeping that
functionality intact whilst maintaining the use of the virtual cursor for
reading mail.

My solution was to add a few keys to the thunderbird's JKM file under the
quick navigation keys section, which are activated when the virtual  cursor
is on.

I see no reason why you cannot take this concept  - either by adding to
internet explorer's files, or to default.jkm and virtual.jss (which is where
the global quick key stuff is stored).

I must admit not to being up on my "rel" attribute - what's the methodology
behind rel="accessibility"?

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Léonie Watson
Sent: 03 May 2009 22:18
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Element attribute values.

        Thanks for your help Chad, this has really kick started things. As
Haden suggested, I've posted the code for my first script below.
It's now working, although I'm sure it's a bit rough around the edges!

;Jaws 10 script for Internet Explorer 8 on Windows XP.
;Written by Léonie Watson, May 2009.
;Script appended to Control l key command.

Script MoveToNextAccessibilityLink ()
string AttributeValueString,
string LinkDescription

let AttributeValueString = "rel=accessibility"
MoveToTagWithAttribute (S_NEXT, "a", "rel", true)
let LinkDescription = GetElementDescription (0, false)

while !StringContains (LinkDescription, AttributeValueString)
        MoveToTagWithAttribute (S_NEXT, "a", "rel", true)
        let LinkDescription = GetElementDescription (0, false)

if StringContains (LinkDescription, AttributeValueString) then
        SaySelectedLink4 ()

        I've tested this out with a dummy page using the following html

<a href="page1.html">Page One</a>
<br />

<a href="page2.html">Page Two</a>
<br />

<a href="page3.html" rel="gallery">Page Three</a>
<br />

<a href="page4.html">Page Four</a>
<br />

<a href="page5.html" rel="accessibility">Page Five</a>
<br />

<a href="page6.html"> Page Six</a>
<br />

<a href="page7.html" rel="donut">Page Seven</a>
<br />

<a href="page8.html" rel="accessibility">Page Eight</a>
<br />

<a href="page9.html" rel="accessibility">Page Nine</a>
<br />

<a href="page10.html" rel=accessibility">Page Ten</a>

        If you have any feedback on the above, it would be very welcome.
Otherwise, next stop is to make the reverse navigation script using the
Shift key modifier.

        This does lead me to another question though. I've added the above
script to the InternetExplorer.jss/jkm files. What would be the best
approach of making this script available to other people to test on other
platforms and browsers, and ultimately for people to use once it's been
tested? Thanks.


Email: tink@xxxxxxxxxx
Twitter: LeonieWatson

Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 

Other related posts: