I am writing a python unittest program. I want to check whether a messagebox appears after several seconds. I find FindWindow(className, windowName) in Win32gui can be used to detect a certain window. I want to know what classname and windowname stands for and whether it can check a message box. Meanwhile, what kinds of windows can FindWindow detect? Whether it can detect all kinds of windows?
Meanwhile, can I use FindWindow to check whether a program is running. For example, check the word window to determine whether it is running?