Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone,

I am developing an application similar to windows inspect using the user 32 dlls.I can recursively access children in another Windows application.(EnumChildWindows)


However, my main goal is to be able to get all the elements in the form in order when clicked on the form. Can I get them in order according to the coordinate plane? They will be used to create a similar ui in another application.

Is there any other way to scrape the screen?

What I have tried:

I've tried many user 32 dll methods, but I haven't been able to get the exact coordinate order.
Posted
Updated 9-Apr-21 10:00am
Comments
Richard MacCutchan 9-Apr-21 9:55am    
No, because that order may change during the life of the program.

1 solution

No, there is no such service.

You'd have to "sort" that data yourself. Get all the window handles and their coordinates and you can "order" them yourself however you want. Windows will not do it for you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900