Skip to content

Instantly share code, notes, and snippets.

@humanfactors
Forked from kchat001/borderless.ahk
Created May 29, 2020 14:19
Show Gist options
  • Save humanfactors/4831da87cc2e707bc260f01545f4bea7 to your computer and use it in GitHub Desktop.
Save humanfactors/4831da87cc2e707bc260f01545f4bea7 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)
#SingleInstance, force
#NoEnv
; 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