pywinauto: Error message COMError: (-2147220991...) from menu_select
Hi there,
Thanks for providing this tool. I ran into one issue today. I am using the latest version of pywinauto on Windows 10 with one app coded on Winform.
After the following script is executed, I got the error message:
COMError: (-2147220991, 'An event was unable to invoke any of the subscribers', (None, None, None, 0, None))
Application(backend="uia").start(apptorun)
app = Application(backend="uia").connect(path = apptorun)
windowsMain = app['Main Window']
windowsMain.menu_select("Help->About")
So my question is :
- Any idea why we have this error? It seems program is waiting for this window closed.
- Do we have way to set timeout for menu_select?
Thanks,
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 18 (5 by maintainers)
Alright. I have one workaround now. Thanks for your help.