由 Shift + g + AppsKey 触发的 AutoHotkey 脚本

AutoHotkey script triggered by Shift + g + AppsKey

我想通过同时按下 Shift + g + AppsKey 来触发脚本。 我试过了

AppsKey & +g::

AppsKey & + & g

但两者似乎都不起作用。

AppsKey & g

有效,但不需要 shift 键。 如何将 shift 键包含到热键中?

您正在尝试进行三键组合,此短语法不支持。制作这样的热键需要额外的 if 语句。

你需要选择两个进入功能的键,比方说A​​pps+g,然后使用GetKeyState 第三个键。所以,解决方法如下:

AppsKey & G::
    If GetKeyState("Shift", "P")
        Send hello
return

选择:

#if GetKeyState("Shift")
~a & b::msgbox
#if