Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Python :: pandas conditional replace values in a series 
Python :: pandas plot histogram 
Python :: requests session in python 
Python :: read xls file in python 
Python :: how to make an object set once python 
Python :: exit all threads from within a thread python 
Python :: reverse string in python 
Python :: how to define dtype of each column before actually reading csv file 
Python :: opencv skip video frames 
Python :: python write to file csv 
Python :: pandas absolute value 
Python :: python voice recognition 
Python :: mongodb group by having 
Python :: import load_iris 
Python :: tkinter events 
Python :: drop column dataframe 
Python :: pandas group by count 
Python :: python random choice int 
Python :: how to save bulk create in django 
Python :: decode html python 
Python :: numpy create a matrix of certain value 
Python :: pandas.core.series.series to dataframe 
Python :: binary string to hex python 
Python :: add element to list python at index 
Python :: how to save unzipped files in python 
Python :: flask mail 
Python :: how to get all folders on path in python 
Python :: python sorted lambda 
Python :: accessing data on django sessionstore 
Python :: python export multiple dataframes to excel 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =