[jawsscripts] Re: Getting screen position for msaa object

  • From: "Nick Allan" <nallan@xxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 23 Oct 2012 22:39:01 +1100

Hi doug
Thanks for this. I did see the accLocation, but wasn't sure how to actually
retrieve values from it correctly.  I appreciate the example function. Makes
life easier.


Regards Nick


-----Original Message-----
From: Doug Lee [mailto:doug.lee@xxxxxxxxxxxxxxxx] 
Sent: Tuesday, 23 October 2012 10:32 PM
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: