[jawsscripts] Avaya again

  • From: "John Robichaud" <John_Robichaud@xxxxxxxxxxx>
  • To: "JawScripts" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 15 Nov 2013 17:42:18 -0500

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

Other related posts: