soda
14 years agoContributor
Any way to get object properties at cursor position?
The application I am testing has panels that are dynamic in several ways. The panels all have labels and edit boxes next to the labels. Those labels and edit boxes can change however, depending on the state of the application. I wanted to verify the functionality of the edit boxes, however, the Index value can change at any time, and the WndCaption cannot be used because sometimes it does not have a value.
My thought was that I can search for the label I would like, and then based on its position, click on the edit box based on the width of the label plus 5(or whatever it takes to click in the edit box). The margin between the Labels and Edit boxes is always the same.
Now that I have clicked on the edit box(which does not have an index or WndCaption, or other unique identifier) is there any way to get the object under the cursor location?
Thanks,
Mark
My thought was that I can search for the label I would like, and then based on its position, click on the edit box based on the width of the label plus 5(or whatever it takes to click in the edit box). The margin between the Labels and Edit boxes is always the same.
Now that I have clicked on the edit box(which does not have an index or WndCaption, or other unique identifier) is there any way to get the object under the cursor location?
Thanks,
Mark