Skip to content

Instantly share code, notes, and snippets.

@yrtimiD
Created May 23, 2020 18:17
Show Gist options
  • Save yrtimiD/f6c22c1b1ec2ab1c0dbcb6bbc9915553 to your computer and use it in GitHub Desktop.
Save yrtimiD/f6c22c1b1ec2ab1c0dbcb6bbc9915553 to your computer and use it in GitHub Desktop.
Windows Always on Top AutoHotkey
Menu,Tray,Tip,Always on top`nWin+Space to toggle always on top
SendMode, Input
;#SPACE:: Winset, Alwaysontop, , A
#SPACE::
WinGetActiveTitle, t
WinGet, ExStyle, ExStyle, %t%
if (ExStyle & 0x8)
{
WinSet, AlwaysOnTop, Off, %t%
WinSetTitle, %t%,, % RegexReplace(t, " - AlwaysOnTop")
}
else
{
WinSet, AlwaysOnTop, On, %t%
WinSetTitle, %t%,, %t% - AlwaysOnTop
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment