[jawsscripts] Re: Avaya again

  • From: Scott Huey <shuey@xxxxxxxxx>
  • To: "jawsscripts@xxxxxxxxxxxxx" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 15 Nov 2013 22:58:01 +0000

According to the export data in the manifest (at least as deep as Visual Studio 
can view), the Build() is returning a UIA cached tree, which you won't be able 
to programmatically manipulate directly beyond data extraction. I'm pretty sure 
you'll need to build live object references with the UIAScriptAPI.dll . From 
there the control pattern needs to be accessed, and I'm pretty sure you'll 
usually need to trigger a button via the "Invoke" pattern.

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of John Robichaud
Sent: Friday, November 15, 2013 5:42 PM
To: JawScripts
Subject: [jawsscripts] Avaya again

Using the AccessibleTree approach that Jitendra & Doug offered I can now 
navigate to the targeted button object that I want but have not been able to 
click it using a script. I determined the navigation path using the Inspect 
tool.  My code  is below:
 

;returns Accessible Tree object

Object Function BuildAccessibleTree ()

Let gOBuilder = CreateObjectEx("FreedomSci.AccessibleTree", False,
"AccessibleObjectTools.x.manifest")

                If gOBuilder then

                                return
gOBuilder.Build(GetAppMainWindow(GetFocus()))

                EndIf

return 0                                

EndFunction

 

Script ClickButton () ;Ctrl+1

var object o

Let o = BuildAccessibleTree()

If (!o) then

                                return

                EndIf

Let o =
o.firstChild.nextSibling.nextSibling.nextSibling.firstChild.firstChild.nextS
ibling

                SayString(o.Name)

                o.click

EndScript

 

I've tried many variations on click including press & LeftMouseButton but 
nothing works. Suggestions?

John

 

 



__________�

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: