[python-win32] Close Windows Dialog Box

Chris Schmechel chris.schmechel at gmail.com
Thu Feb 23 15:24:14 CET 2006


Hi,

I'm trying to cancel the File Download - Security Warning box
that appears in IE on XP SP2.  The button options are to run,
save, or cancel.

...
wnd = 0
while wnd == 0:
 wnd = FindWindowEx(0,0,"#32770","File Download - Security Warning")
print wnd
PostMessage(wnd,WM_CLOSE,0,0)
Any ideas on how to accomplish this?

I'm fairly new to Python as well, but it's great so far.

Thanks again,

Chris Schmechel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20060223/8b9cfabb/attachment.htm 


More information about the Python-win32 mailing list