Created
May 23, 2020 18:17
-
-
Save yrtimiD/f6c22c1b1ec2ab1c0dbcb6bbc9915553 to your computer and use it in GitHub Desktop.
Windows Always on Top AutoHotkey
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
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