Help with IAccessible objects
Posted: 15 Nov 2017, 10:54
Hi,
Firstly I would like to say that I'm pretty new to IAccessible objects, so I definitely do not know all there is to know and have probably misunderstood some concepts. Can someone tell me why the Acc library Viewer https://autohotkey.com/boards/viewtopic.php?t=26201 does not display the same tree hierarchy as Microsoft Inspect https://msdn.microsoft.com/en-us/librar ... s.85).aspx. I tried out both in Word and they got different amount of children from the main (topmost parent) window, and the child objects of the main window found in Inspect is found different places in Acc Viewer (pictures below). Does Acc library retrieve the children differently?
I for some reason I have trouble getting down the tree hierarchy of an IAccessible object, for example from word to the bold button, because I can't get the IAccessible object of a child (I probably have misunderstood the way of retrieving this), because the output of AccessibleChildren function https://msdn.microsoft.com/en-us/librar ... s.85).aspx, is a Variant, and I'm not sure how to use this to access children of children and so on.
Any clarification would be greatly appreciated, or maybe point me in the right direction to learn this.
Inspect
Acc Viewer
Firstly I would like to say that I'm pretty new to IAccessible objects, so I definitely do not know all there is to know and have probably misunderstood some concepts. Can someone tell me why the Acc library Viewer https://autohotkey.com/boards/viewtopic.php?t=26201 does not display the same tree hierarchy as Microsoft Inspect https://msdn.microsoft.com/en-us/librar ... s.85).aspx. I tried out both in Word and they got different amount of children from the main (topmost parent) window, and the child objects of the main window found in Inspect is found different places in Acc Viewer (pictures below). Does Acc library retrieve the children differently?
I for some reason I have trouble getting down the tree hierarchy of an IAccessible object, for example from word to the bold button, because I can't get the IAccessible object of a child (I probably have misunderstood the way of retrieving this), because the output of AccessibleChildren function https://msdn.microsoft.com/en-us/librar ... s.85).aspx, is a Variant, and I'm not sure how to use this to access children of children and so on.
Any clarification would be greatly appreciated, or maybe point me in the right direction to learn this.
Inspect
Acc Viewer