是否可以使用两个键,其中一个可以执行AutoHotKey(AHK)脚本中的功能

时间:2019-04-04 20:45:39

标签: autohotkey

我正在尝试游戏脚本,请单击“ E”或Shift + E(运行时按Shift->)。如何在AHK中使用“ OR”?

e OR +e::
{
Send, E
Sleep, 50
Send, E
Sleep, 50
Send, F
}
return

1 个答案:

答案 0 :(得分:1)

$e:: 
$+e:: 
Send, E 
Sleep, 50 
Send, E 
Sleep, 50 
Send, F  
return

$阻止Send, E再次触发热键。

也请检查此链接Autohotkey multiple hotkeys mapping to the same function