[jawsscripts] Activating a Button with JAWS

  • From: "E.J. Zufelt" <everett@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 24 Dec 2008 08:40:46 -0400

Good morning,

I found a solution to my Find problem, but I am still open to suggested 
methods to use that function.

What I was attempting to do is to locate a button on a page full of buttons 
and then to provide a JAWS Script to click on that particular button (to 
save the end user searching for the right button all day long).

Thanks to Jamal for reminding me that you can access the IE DOM using JAWS.

Here is what I did:

Script findButton ()

Var

Object oDoc,

Object oButton



; Gets a reference to the DOM

Let oDoc = IEGetCurrentDocument ()



; Finds the button that I am looking for based on the buttons id atribute.

Let oButton = oDoc.getElementById("b2")

oButton.click()

EndScript



HTH,

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

Other related posts: