【问题标题】:F11 act like left mouseclick with Autohotkey, and F12 as right mouseclick?F11 就像鼠标左键单击 Autohotkey 一样,F12 就像鼠标右键单击?
【发布时间】:2016-10-11 14:29:56
【问题描述】:

我尝试让 F11 充当 [鼠标左键],使用 Autohotkey,而 F12 充当鼠标右键。

我尝试了下面的脚本。谁能告诉我我做错了什么,或者不能做吗?

F11::Send mouseClick left
return

【问题讨论】:

    标签: autohotkey


    【解决方案1】:

    我找到了问题的答案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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-11-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多