【问题标题】:AHK capture key combination left mouse button with other keyAHK 捕获键组合鼠标左键与其他键
【发布时间】:2018-12-09 08:11:35
【问题描述】:

我想捕获热键组合鼠标左键和键 w。 目前我尝试过没有成功:

Lbutton & w::doStuff()
*Lbutton & w::IfGetKeyState("w", P") doStuff()

有人知道怎么做吗?

【问题讨论】:

    标签: autohotkey hotkeys mouse-buttons


    【解决方案1】:

    定义custom combinations时,第一个键(在本例中为L按钮)成为前缀键并失去原来的功能。

    为避免这种情况,请使用 tilde prefix (~)。它可以防止 AHK 阻止 key-down/up 事件。

    ~Lbutton & w:: doStuff()
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-09-27
      • 1970-01-01
      • 1970-01-01
      • 2015-08-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-30
      相关资源
      最近更新 更多