Skip to content

Instantly share code, notes, and snippets.

@kchat001
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)
; 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