Re: Uniquely identifying UIElements
Re: Uniquely identifying UIElements
- Subject: Re: Uniquely identifying UIElements
- From: Eric Schlegel <email@hidden>
- Date: Mon, 4 Jul 2005 11:12:05 -0700
On Jul 4, 2005, at 1:55 AM, Ayush Ghai wrote:
I am using assistive API to get the information corresponding to the
windows on screen and also event notifications for the windows. So far
so good. Now the problem has come when I uniquely want to identify
each AXUIElemntRef corresponding to the windows on screen adn also get
the windowref for the window if possible. I have come across the
functions line AXUIElementGetHIObject and AXUIElementGetID but they
work only for Carbon made objects :-( ..
There really isn't any way to get a meaningful window identifier from
a UI element outside of the process that generated the UIElement. In
other words, if your process asks some other process for its main
window attribute, and you get back a UIElement, you can't call
AXUIElementGetHIObject from your process; it won't produce anything
useful (and probably will just return an error).
What is the problem you are trying to solve?
Also, someone told me that using accessibility API one can make boxes
or rings around other applications windows. Is it true?
The Accessibility API itself does not support this, but you could
certain get a UIElement corresponding to a window, ask it for its
bounds, and then create a mostly-transparent window yourself at the
same location that just draws a frame around the outside of itself.
Visually, that would give you a frame around the other app's window.
-eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden