如何将 Ctrl+Esc 映射到 autohotkey 中的另一个键

How to map Ctrl+Esc to another key in autohotkey

我正在尝试将 Esc 映射到左侧 Control 并将 Control+ESC 映射到原始 ESC。不幸的是,当我按下 Control+ESC 时,Windows 开始菜单 打开了。如何解决这个问题?

Esc::Send {LControl Down}
^Esc::Esc

Esc 热键定义之前使用 $ 修饰符以防止从另一个热键启动它:

$Esc::Send {LControl Down}
^Esc::Send {Esc}

此更改后,定义如您所愿。