Hello I am new to Python and do not know how to minimize a specific window in this case Microsoft Word 2010 all I can minimize is the Python Shell. Here is my code just in case you need it.
import win32gui, win32con
import os
import math
import time
M=6
Minimize = win32gui.GetForegroundWindow()
print("Program Started on "+time.ctime())
while M >0:
time.sleep(1)
print(M," more seconds until Word is opened")
M -=1
time.sleep(1)
os.startfile("C:\Documents and Settings\All Users\Start Menu\Programs\MicrosoftOffice\Microsoft Word 2010")
print("Microsoft Word 2010 opened "+time.ctime())
time.sleep(2)
win32gui.ShowWindow(Minimize, win32con.SW_MINIMIZE)