F11就像左键单击Autohotkey一样,F12就像右击鼠标一样?

时间:2015-10-22 11:12:38

标签: autohotkey

我尝试将 F11 作为[鼠标左键单击],使用Autohotkey, F12 作为右键单击。

我尝试了下面的脚本。有人可以告诉我我做错了什么,或者可以做到吗?

F11::Send mouseClick left
return

1 个答案:

答案 0 :(得分:0)

我找到了问题here的答案。

F11::
Send {LButton Down}
KeyWait F11
Send {LButton Up}
Return

F12::
Send {RButton Down} 
KeyWait F12 
Send {RButton Up}
Return

我在该网站上找到的解释:

a:: ;"a" key on key board :)
Send {LButton Down} ;Press left mouse button
KeyWait a ;wait for release of "a"
Send {LButton Up} ;release Left Mouse button
Return ;End Hotkey