Hi,
I want to get the text of the element under the mouse cursor in VB
using MSAA (in fact the same as Accexplorer does with the crosshairs).
However, AccessibleObjectFromPoint retruns some IAccessible object but
not the one wht the accName that is under the mouse coordinates.
I can of course navigate in its Parent or numerous Child trees but
still I don't know which element is the right one (by checking the
accLocation I could only eliminate some).
How does AccExplorer find the element located under the mouse cursor?
Thanks!
Jens Müller - 25 Jan 2008 16:22 GMT
> However, AccessibleObjectFromPoint retruns some IAccessible object
> but not the one wiht the accName that is under the mouse coordinates.
Well I see that my diagnosis was not 100% correct. I get the right
IAccessible object (I can compare the child elements with those shown
in AccExplorer), but because of some reason I cannot call accName,
accValue or accLocation.
Getting (German VB):
"Laufzeitfehler '-2147467259 (80004005)':
Die Methode 'accValue' für das Objekt 'IAccessible' ist fehlgeschlagen"
If I navigate to the accParent or one of the children, I get correct
values for accName and so on.
Thanks for any hints.