Catching and automating a win32 MessageBox

Xavier Homs xhoms at juniper.net
Thu Nov 8 11:54:14 EST 2007


Hi,

I'm using an application that shows a standard (YES/NO) reconnect
MessageBox each time if loses conection with its server. It defaults to YES.

Is there any way to hook such a MessageBox a send a default action (yes)
from a Python Script?

All I've been able to do is to get a HWND with win32gui.FindWindow(none,
"Title Name") pointing to the parent window (the one that uses the
MessageBox() function)


Thanks in advance

Xavi



More information about the Python-list mailing list