win32com - close any open window using python -
win32com - close any open window using python -
i wrote programme downloads images urls using urllib.urlretrieve( url , address ).
after each download of image, open using os.startfile(address) or os.system(address).
then wait 5 seconds using time.sleep(5) , download next image , open in same way.
it opens, old 1 still opened. want old window closed.
one way how tell python 2.7 simulate alt+f4 in order close old window before opening new one.
python win32com
Comments
Post a Comment