How can I interact with Windows programs

So, I'm trying to create an automatic installer using Python. How will I interact with the native Windows applications that I run? I am currently running them using subprocess.call. Do I need to use Win32com? IronPython? Call a VB script from Python?

I am trying to examine COM objects, but all I see is Microsoft's default applications.

+5
source share
1 answer

If the application supports COM, use COM using win32com. This tutorial helped me a lot. If this is not the case, you can use something like pywinautoor similar software. It is usually described as a module for testing the graphical interface. SendKeysSuitable for non-standard graphical interfaces as a last resort.

Ranorex Spy is a very useful tool for identifying GUI elements.

Some of my colleagues also use compiled AutoHotkey scripts .

+5
source

All Articles