我可以列出几个按键来执行相同的操作吗? [AHK] [英] Can I list several keys to perform the same action? [AHK]
本文介绍了我可以列出几个按键来执行相同的操作吗? [AHK]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
AHK允许绑定键,即我们a::z
每当按下'a'时都触发'z'.
如果我想在按下"a","b"或"c"时触发"z"怎么办?
AHK allows to bind keys, that is us a::z
t fire 'z' whenever 'a' is pressed.
What if I want to fire 'z' whenever 'a', 'b', or 'c' is pressed?
我显然可以重复我的代码:
I can obviously repeat my code:
a::z
b::z
c::z
我可能可以使用Gosub之类的
I can probably use a Gosub like
a::Gosub, abc
b::Gosub, abc
c::Gosub, abc
abc:
send z
return
有没有更好的说法如果按下a,b或c-发射z"?
Is there a better way to say "if a,b, or c are pressed - fire z"?
推荐答案
您可以只使用
a::
b::
c::z
我不确定确切的合奏是什么,但这是可行的.
i am not sure what is the exact synthax, but this works.
这篇关于我可以列出几个按键来执行相同的操作吗? [AHK]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文