Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / January 2008



Tip: Looking for answers? Try searching our database.

IAccessible, get element under mouse cursor

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jens Müller - 25 Jan 2008 14:30 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.