[jawsscripts] Re: Getting object's coordinates

  • From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Thu, 11 Jun 2009 07:55:10 -0400

I held off answering this hoping I'd remember more of what I once did.
I haven't had to mess with Java scripting much in the last three years
or so.  But I vaguely remember that the JAWS cursor can find text, the
invisible cursor can find object rectangles but not text, and you can
routeInvisibleToJAWS to get them to link.  I don't remember how to get
all that associated with the PC cursor location, unless RouteJAWSToPC
works.  I seem to remember that being slow, but I don't remember how
accurate.  I do know that you can get an ID from an invisible cursor
location though.

Beware that nav IDs can change any time the page updates, which
includes when you hit Tab.  Storing IDs for future use is a risky
business.

On Tue, Jun 09, 2009 at 04:20:29PM -0400, jaws tech wrote:
Hi All,
I have a JAVA application that has a "real window" and an app main window.
The nav* functions can
get the object ID of each of these and I can get their object names as
well.  However, I need to know the
object rectangle of the "real window's" object because I have some
coordinate-based scripting to do.
I can use the getobjectrect() for objects that can have focus but you can't
tab to the "real window".
Is there a way to find an object's rectangle given only its object ID??

Thanks very much.


__________?
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
//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
__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: