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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -