Writing some test scripts in IronPython, I want to check if a window is displayed or not. I have a pid for the main application process and want to get a list of window names associated with pid.
I tried to avoid using win32api calls like FindWindowEx, since (as far as I know) you cannot access win32api directly from IronPython. Is there a way to do this using the built-in .net classes? Most of the materials that I came across recommends using win32api, for example, below.
.NET (C #): Getting child windows when you only have a process handle or PID?
UPDATE: I found a job around what I was trying to do. The answer is below.
Tom e source
share