Last active
November 15, 2024 15:19
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