我如何使用 win 键显示 GUI (autohotkey)
how do i use the win key to show GUI (autohotkey)
我正在尝试使用 windows 键作为启动 GUI 的热键
我想做的是当我按住 windows 键时显示 GUI,当释放 windows 键时隐藏 GUI(我也不想阻止该功能赢键)
除了 win 键外,代码可以按预期使用任何其他键(我似乎无法弄清楚为什么会这样)
因此在下面的代码中,它与 z 键完美配合,但它仅与 win 键配合使用一次,然后整个脚本停止工作(按下 win 键后它甚至无法与 z 键配合使用
#SingleInstance force ;only one instance of this script may run at a time!
global guiName = "win_key"
Gui Color, White
Gui -caption +toolwindow +AlwaysOnTop
Gui font, s15 Bold, Verdana
Gui add, text,cblack TransColor, 1 2 3 4 5 6 7 8 9
Gui Show, x490 y1035 , TRANS-WIN ; y1040 x 490 1010 ; e3e3e3
WinSet TransColor, White, TRANS-WIN
Gui, Cancel
~LWin::Gui, Show, NoActivate, %guiName%
~LWin up::Gui, Cancel
~z::Gui, Show, NoActivate, %guiName%
~z up::Gui, Cancel
已修复
发生的事情是 gui 工作正常,但是当按下 win 键时,任务栏出现在 gui 之上并且 gui 不可见
所以通过再次将 gui 置于顶部来修复它
~lwin::
Gui -caption +toolwindow +AlwaysOnTop
Gui, Show, NoActivate, %guiName%
return
我正在尝试使用 windows 键作为启动 GUI 的热键
我想做的是当我按住 windows 键时显示 GUI,当释放 windows 键时隐藏 GUI(我也不想阻止该功能赢键)
除了 win 键外,代码可以按预期使用任何其他键(我似乎无法弄清楚为什么会这样)
因此在下面的代码中,它与 z 键完美配合,但它仅与 win 键配合使用一次,然后整个脚本停止工作(按下 win 键后它甚至无法与 z 键配合使用
#SingleInstance force ;only one instance of this script may run at a time!
global guiName = "win_key"
Gui Color, White
Gui -caption +toolwindow +AlwaysOnTop
Gui font, s15 Bold, Verdana
Gui add, text,cblack TransColor, 1 2 3 4 5 6 7 8 9
Gui Show, x490 y1035 , TRANS-WIN ; y1040 x 490 1010 ; e3e3e3
WinSet TransColor, White, TRANS-WIN
Gui, Cancel
~LWin::Gui, Show, NoActivate, %guiName%
~LWin up::Gui, Cancel
~z::Gui, Show, NoActivate, %guiName%
~z up::Gui, Cancel
已修复 发生的事情是 gui 工作正常,但是当按下 win 键时,任务栏出现在 gui 之上并且 gui 不可见
所以通过再次将 gui 置于顶部来修复它
~lwin::
Gui -caption +toolwindow +AlwaysOnTop
Gui, Show, NoActivate, %guiName%
return