Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # pip install pywin32 -> This will install the libs that are required
- import win32gui, win32con
- hide = win32gui.GetForegroundWindow()
- win32gui.ShowWindow(hide , win32con.SW_HIDE)
- #or Simply save it with a .pyw extension. This will prevent the console window from opening
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement