[jawsscripts] Avaya again using ClickablePoint

  • From: "John Robichaud" <John_Robichaud@xxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 19 Nov 2013 17:46:53 -0500

I'm now trying to use ClickAtPoint to activate my Avaya button. However, I'm 
having trouble deriving the clickable point coordinates.  My code follows:

Let o = AccessibleTree
Let o = o.FirstChild.NextSibling.NextSibling.NextSibling.FirstChild.FirstChild
SayString(o.Name)
Let iX = o.ClickablePoint.X
Let iY = o.ClickablePoint.Y
SayString("x=") SayInteger(iX)
SayString("y=") SayInteger(iY)

I'm sure this code is incorrect as all I ever get are 0 for the coordinates. I 
know the coordinates exist because the Inspect tool shows them as x = 823 and y 
= 92.  I'd appreciate any help here.
John


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Soronel Haetir
Sent: Friday, November 15, 2013 6:18 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Avaya again

The only thing I can see in IaccessibleObject that might help would be using 
the ClickablePoint member to get the coordinates of the button and then perhaps 
the jaws ClickAtPoint function.

There is also the ClickObjectByName function, which might be easier if the 
button has a name assigned.

On 11/15/13, John Robichaud <John_Robichaud@xxxxxxxxxxx> wrote:
> 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
>
>


--
Soronel Haetir
soronel.haetir@xxxxxxxxx
__________?

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:

  • » [jawsscripts] Avaya again using ClickablePoint - John Robichaud