【问题标题】:AutoHotKey two different hotkey Lbutton and Lbutton downAutoHotKey 两个不同的热键 Lbutton 和 Lbutton down
【发布时间】:2012-11-19 13:51:00
【问题描述】:

我试图创建两个热键

One for Lbutton:: "鼠标左键(单击)" 另一个用于鼠标左键(仅在按住时,可能超过 0.2 秒)

或者有像 Lbutton Down:: 和 Lbutton Up:: 这样的键列表?

【问题讨论】:

    标签: autohotkey


    【解决方案1】:

    我会像这样使用keyWait

    LButton::
    {   ;wait for the mouse button to be let go, set 0.2 second timeout
        KeyWait, LButton, T0.2
    if(ErrorLevel)
    {   MsgBox holding down
    } else
    {   MsgBox clicked
    }
    return
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-03-03
      • 2021-01-10
      • 2016-06-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-20
      • 1970-01-01
      相关资源
      最近更新 更多