Except that the .Build call returns an object that supports IAccessibleObject rather than the UIA or MSAA interfaces. On 11/15/13, Travis Roth <travis@xxxxxxxxxxxxxx> wrote: > Can you query what methods the object supports? > According to a quick Google so that means I haven't verified it in any way, > controls that use Windows UIAutomation are supposed to support the Invoke() > method to do a default action. When MSAA is the interface being used I > think > it was doDefaultAction()? Or something similar. > > If you can find the newest Inspect tool which is supposedly part of Windows > 8 SDK according to this page, it may help you to see what methods are > supported. > http://msdn.microsoft.com/en-us/library/windows/desktop/dd318521(v=vs.85).as > px > > -----Original Message----- > From: jawsscripts-bounce@xxxxxxxxxxxxx > [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of John Robichaud > Sent: Friday, November 15, 2013 4: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 > > -- Soronel Haetir soronel.haetir@xxxxxxxxx __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts