如果 Win 键是使用 AutoHotkey 唯一按下的键,如何禁用它?

How to disable the Win key if it's the only key being pressed using AutoHotkey?

我经常发现自己误按了 Win 键,当它是使用 AutoHotkey 唯一按下的键时如何禁用它?

换句话说,点击 Win 不应调出开始菜单,但 Win 快捷键组合应该仍然有效,例如按 Win+X 应打开快捷 link 菜单。

引自#MenuMaskKey

The Start Menu (or the active window's menu bar) can be suppressed by sending any keystroke. The following example disables the ability for the left Win to activate the Start Menu, while still allowing its use as a modifier:

~LWin::Send {Blind}{vkE8}

引自Blind mode

The Blind mode can be enabled with {Blind}, which gives the script more control by disabling several things that are normally done automatically to make things work as expected.

如果没有 {Blind}.

~LWin::Send {vkE8} 在某些情况下可能无法工作