Created
December 4, 2022 00:27
-
-
Save secemp9/d473194cc299576acbb0a12320ef3f67 to your computer and use it in GitHub Desktop.
Playing around with setting/unsetting windows attributes on Windows 10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import win32gui,win32api,win32con | |
title = "File Explorer" # modify this line... | |
hwnd = win32gui.FindWindow(None, title) | |
style = win32gui.GetWindowLong(hwnd, win32con.GWL_STYLE) | |
style &= ~(win32con.WS_OVERLAPPED | win32con.WS_SIZEBOX | win32con.WS_CAPTION | win32con.WS_THICKFRAME | win32con.WS_SYSMENU); | |
win32gui.SetWindowLong(hwnd, win32con.GWL_STYLE, style) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment