[jawsscripts] Re: Getting screen position for msaa object

  • From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Tue, 23 Oct 2012 07:32:17 -0400

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
__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: