[jawsscripts] Re: Getting screen position for msaa object

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 24 Oct 2012 15:05:15 +1100

AH. Right. Thank ye muchly for those Doug.

much appreciated.
Geoff c.
----- Original Message ----- 
From: "Doug Lee" <doug.lee@xxxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Wednesday, October 24, 2012 2:06 PM
Subject: [jawsscripts] Re: Getting screen position for msaa object


> Finding points to click for each item on an MSAA-capable toolbar.
> Getting non-MSAA-available info out of list items when MSAA does
> provide accurate location info, such as in parts of Skype. Determining
> where to click to resort an MSAA-capable grid by a column, which
> involves clicking its header.
>
> On Wed, Oct 24, 2012 at 12:43:12PM +1100, Geoff Chapman wrote:
> Hi Mike/Doug.
>
> Would either of you care to offer a RealWorld scenareo as to exactly how
> such information might be practically utilized?
> In other words, what kind of access situation it might be used to 
> alleviate?
>
> Thanks much.
>
> Geoff c.
> ----- Original Message ----- 
> From: "Doug Lee" <doug.lee@xxxxxxxxxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Wednesday, October 24, 2012 6:20 AM
> Subject: [jawsscripts] Re: Getting screen position for msaa object
>
>
>>I don't know a way to translate from that function to actual objects,
>> which admittedly is a big reason I don't often use that function. You
>> can get an MSAA object from a window handle in most cases via the
>> following trick though:
>>
>> var object o, int childID
>> ; We assume hwnd is a valid window here...
>> let o = getObjectFromEvent(hwnd, ObjID_Client, 0, childID)
>>
>> ObjID_Client is -4, in case you're using a JAWS version old enough not
>> to have that one. If your JAWS does have it, it's in MSAAConst.jsh,
>> which you of course will need to include.
>>
>> On Tue, Oct 23, 2012 at 03:06:32PM -0400, Mike O'Brien wrote:
>> 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
>>
>> -- 
>> 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
>>
>
> __________???
>
> 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
> 

__________�

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

Other related posts: