我是ahk的新手。我知道如何将键绑定到键(a :: b),但是可以将键绑定到鼠标单击吗?
答案 0 :(得分:1)
有几种方法。例如:
g::click
或
h::mouseclick
如果您想在按下鼠标时执行其他操作,则可以执行此操作
d::
Click down
MsgBox You pressed down d.
KeyWait, d
Click up
MsgBox You released d.
return
答案 1 :(得分:0)
这取决于你想要绑定的键。你可以使用
a::Click ; for most of the keys
`;::Click ; escaping special characters such as ";" is required