[jawsscripts] Re: Trying to use Jaws UIA Script API

  • From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Mon, 6 Jan 2014 16:12:05 -0500

The goTo* methods change object state and return boolean, rather than
returning a new object. You'll have to make your goto* calls
separately, then use MyTreeWalker.currentElement to get at where you landed.

On Mon, Jan 06, 2014 at 04:07:37PM -0500, John Robichaud wrote:
I'm trying to use the Jaws UIA Script API to speak the name of a pushbutton
in an application.  This is Windows 7 and Jaws 15.0.5056.
I've used MicroSoft's Inspect tool to reveal the object hierarchy.  My code
follows:

 

Var object MyObject, object MyTreeWalker

Let MyObject = CreateObjectEx("FreedomSci.UIA", false,
"UIAScriptAPI.x.manifest")

Let MyTreeWalker = MyObject.ControlViewWalker

SayString(MyTreeWalker.GoToFirstChild().GoToNextSibling().GoToNextSibling().
GoToNextSibling().GoToFirstChild().GoToFirstChild().Name)

 

I know the name that should be spoken for this element but I get nothing.  I
suspect that I'm not using the Tree Walker piece correctly. Can anyone help
with this?

John Robichaud



__________???

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

-- 
Doug Lee, Senior Accessibility Programmer
SSB BART Group - Accessibility-on-Demand
mailto:doug.lee@xxxxxxxxxxxxxxxx  http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller
__________�

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

Other related posts: