Skip to content

Instantly share code, notes, and snippets.

@Forgo7ten
Created November 21, 2021 12:48
Show Gist options
  • Save Forgo7ten/ccd41750fbc6e5c5027750dea59ae1ac to your computer and use it in GitHub Desktop.
Save Forgo7ten/ccd41750fbc6e5c5027750dea59ae1ac to your computer and use it in GitHub Desktop.
通过Win+`键使任意窗口置顶、取消置顶 [autohotkey工具](https://autohotkey.com/)
;==================================================
;** 快捷键 Win+` 使当前窗口置顶
;==================================================
#`::
WinSet, AlwaysOnTop, toggle,A
WinGetTitle, getTitle, A
Winget, getTop,ExStyle,A
if (getTop & 0x8)
TrayTip 已置顶, 窗口标题: `n%getTitle%,10,1
else
TrayTip 取消置顶, 窗口标题:`n %getTitle%,10,1
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment