简体   繁体   中英

How do I use Pyinspect to get all elements Id in a Win32 app?

I am going to use Pyautowin to automate a Win32 app.

However, I need to know the control/element names, eg all controls or menu items within notepad. I know I can use pyinspect to inspect the elements. However, I don't seem to get it working. The pyinpect asked me for a .py file, then it just list the methods within the py file. I wonder if I downloaded the right one. Please direct me to the correct install and it will be even better if there is walkthrough.

Thanks in advance and your help would be greatly appreciated!

As an alternative you could use the inbuilt inspect.exe within windows :) It works wonders in identifying controllers, element/table names which you can then manipulate with PyAutowin.

More information could be found here: https://docs.microsoft.com/en-us/windows/desktop/winauto/inspect-objects

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM