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

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -