Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

minimize window with python

import ctypes

notepad_handle = ctypes.windll.user32.FindWindowW(None, "Untitled - Notepad")
ctypes.windll.user32.ShowWindow(notepad_handle, 6)

notepad_handle = ctypes.windll.user32.FindWindowW(u"Notepad", None) 
ctypes.windll.user32.ShowWindow(notepad_handle, 6)

# The 6 used here is the Windows code for SW_MINIMIZE
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #minimize #window #python
ADD COMMENT
Topic
Name
7+2 =