Use Python Win32gui to check messagebox

匿名 (未验证) 提交于 2019-12-03 02:38:01

问题:

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?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!