【问题标题】:Press both mouse buttons when holding left click按住鼠标左键时同时按下两个鼠标按钮
【发布时间】:2017-09-13 03:00:20
【问题描述】:

当我按住鼠标左键时,我希望鼠标右键也被按住。

当不再按住左鼠标时,右鼠标将释放。所以左键可以同时控制两个按钮。

【问题讨论】:

    标签: autohotkey


    【解决方案1】:

    LButton::RButton 表示左按钮的作用类似于您的右按钮。 ~ 修饰符的意思是“触发热键以及它重新映射到的任何内容”。

    ~LButton::RButton
    

    快速编辑:如果您需要在按住左键一定时间后激活它,请使用:

    ; Time for LButton to be held down before RButton is sent (in milliseconds)
    waitTime    := 500
    return
    
    ~*LButton::
        while GetKeyState("LButton", "P")
            if (A_TimeSinceThisHotkey > waitTime){
                Send, {RButton Down}
                KeyWait, LButton
                Send, {RButton Up}
            }
    return
    

    【讨论】:

      猜你喜欢
      • 2013-06-07
      • 2011-02-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-31
      • 2010-09-27
      相关资源
      最近更新 更多