Last active
April 25, 2023 02:17
-
-
Save kchat001/9e47144945095cfc7b40 to your computer and use it in GitHub Desktop.
An AutoHotKey Script that allows to toggle the window title and the border chrome of the current window independently (Ctrl+Win+t and Ctrl+Win+b)
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
; Borderless Window - AutoHotkey Script | |
; The script toggles the window border and title bar of the current window independently | |
; The hotkey is Control+Win+t. It applies changes to whatever window has focus. | |
^#t:: | |
WinGetTitle, currentWindow, A | |
IfWinExist %currentWindow% | |
{ | |
WinSet, Style, ^0xC00000 ; toggle title bar | |
} | |
return | |
; The hotkey is Control+Win+b. It applies changes to whatever window has focus. | |
^#b:: | |
WinGetTitle, currentWindow, A | |
IfWinExist %currentWindow% | |
{ | |
WinSet, Style, ^0x840000 ; toggle thin line border / dialog frame | |
} | |
return | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment