[jawsscripts] Re: Getting screen position for msaa object

  • From: "Mike O'Brien" <mike23432@xxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 23 Oct 2012 15:06:32 -0400

Hi

If the object's name was obtained using the GetListOfObjects function, is
there a way to get the object and child id using the name or any of the
information returned by the GetObjectInfoByName function?

Thanks.


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Doug Lee
Sent: Tuesday, October 23, 2012 07:32
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Getting screen position for msaa object

This might help:

int function getMSAARect(object o, int childID, int byRef left, int byRef
right, int byRef top, int byRef bottom) ; Get the bounding rectangle for the
given MSAA object and childID.
; The rectangle is returned 1-based, as JAWS likes its rectangles.
; MSAA provides 0-based left/top/width/height.
if !o then
        let left = 0
        let right = 0
        let top = 0
        let bottom = 0
        return False
endIf
if !childID then
        let childID = 0
endIf
o.accLocation(intRef(left), intRef(top), intRef(right), intRef(bottom),
childID) if !left && !right && !top && !bottom then
        return False
endIf
; but we want 1-based left/right/top/bottom.
let left = left +1
let top = top +1
let right = left +right
let bottom = top +bottom
return True
endFunction


On Tue, Oct 23, 2012 at 10:22:12PM +1100, Nick Allan wrote:
Hi all
Can anyone suggest the best method to move to the screen psotiion of an MSAA
object. I'm finding myself being able to find the msaa object, but needing
to move to a graphic to the left of it on screen. Any suggestions on the
best method would be helpful.

 

Thanks.

 

Regards Nick

 



__________???

View the list's information and change your settings at
http://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 __________o?=

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: