Skip to content

Instantly share code, notes, and snippets.

@kchat001
Last active April 25, 2023 02:17
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save kchat001/9e47144945095cfc7b40 to your computer and use it in GitHub Desktop.
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)
; 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