[jawsscripts] Re: Modifying Jaws script for navigating between landmarks

  • From: "Travis Roth" <travis@xxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 15 Nov 2012 16:50:54 -0600

If you just want to make a proof of concept to move to a place it may be
easier to just set up something JAWS does recognize?
There is a MoveToTagWithAttribute() function so you could make some custom
HTML with a DIV and an attribute such as <div "main=true">
And then jaws function 

MoveToTagWithAttribute (s_top, "div", "main", true)

Again I am not sure if this will work if jaws doesn?t recognize that
attribute but worth a try?

Alternatively you could try some JavaScript and setFocus() commands such as
;pseudocode...
Dom = IEGetCurrentDocument()
Element = Dom.getElementByID("main")
Element.setFocus()

I am not sure how accurate jaws would match the virtual pc to the setting of
focus. But if added a tabIndex to the div in question it should work?


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Léonie Watson
Sent: Thursday, November 15, 2012 2:46 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Modifying Jaws script for navigating between
landmarks

Good point. If I use "h1" as the second argument, the script works ok. If I
try "main" it stops working though.

Guessing this is because Jaws doesn't recognise the element. Is there any
way to force it to recognise it, or any other work around I could try?

Léonie. 
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Travis Roth
Sent: 15 November 2012 19:43
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Modifying Jaws script for navigating between
landmarks

I would assume that body would represent the entire page? SO it may be
difficult to tell if it moves to that one? Can you try another known tag on
a test page such as a h1?

As for layered keystrokes you have to add them to the .jkm file by  hand.
The syntax is:
JAWSKey+Space&m=MoveToMain

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Léonie Watson
Sent: Thursday, November 15, 2012 12:42 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Modifying Jaws script for navigating between
landmarks

Thanks Sina and Travis. I've been experimenting with that function, but I'm
having some trouble getting it to work.

I'm currently using it to create a shortcut to move to the <body> element,
since I know that should be in Jaws' list of tags. I've added a script to
the firefox.jss file, and from within it I've called that function.

Script MoveToMain ()
MoveToTag (s_top, "body")
EndScript

It's currently bound to Jaws key + m as a keystroke. I've compiled the
script, checked the keyboard manager to confirm the keystroke is tied to the
script, and tested it in Firefox.

Guessing I'm missing something obvious. Any suggestions?


On a related note, Sina suggested binding it to Jaws key + space, m. I don't
seem to be able to replicate that keystroke in the key assignment field of
the create script dialogue though. It recognises the Jaws key + space, but
not the additional keystroke.

Léonie.
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Travis Roth
Sent: 15 November 2012 00:06
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Modifying Jaws script for navigating between
landmarks

Hi,
JAWS has a MoveToTag() function.
You could try something like
MoveToTag (s_top, "main")

I am not sure if JAWS loads any tag it finds into its tag list, or only
officially recognized HTML tags, but you could try and find what happens...

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Léonie Watson
Sent: Wednesday, November 14, 2012 3:59 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Modifying Jaws script for navigating between
landmarks

Good evening,
 

I?d like to create a proof of concept script for Jaws. It?s to demonstrate
how Jaws might support a new HTML5 element that?s been proposed.

 

I think there are two possible options. Either to modify the script that
handles navigation between landmarks on web pages with the semi colon quick
nav key, or to write a new script that introduces a new quick nav key based
on the proposed element.

 

A potential catch is that this new element doesn?t exist yet, so there is no
browser support for it. Jaws would need to take it from the HTML because no
information will be available via the browser?s accessibility API.

 

If this is something that?s likely to be browser specific, Firefox is my
preferred browser for developing this proof of concept functionality.

 

I?m an occasional Jaws scripter, but it?s been a long time since I used it
in anger. I?d appreciate any advice on the best approach to take,
scripts/functions I would need to modify, and any pitfalls I should be aware
of.

 

I?ve searched the list archives (and will keep trying), but if there is
existing information around this anywhere, links and/or reading material
happily received as well. Thanks.

 

Léonie.

-- 

Léonie Watson

 

E. tink@xxxxxxxxxx

T. @LeonieWatson

S. Leonie.Watson

W. tink.co.uk

 


__________�

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts


__________�

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts



__________�

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts


__________�

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts



__________�

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts


__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: