ahk吧 关注:878贴子:2,714
  • 4回复贴,共1

求大神帮忙,

只看楼主收藏回复

#IfWinActive ahk_class Photoshop ;PS软件
~MButton::Send, {space down}{LButton down} ;鼠标中键移动窗口
~MButton Up::Send, {space up}{LButton up} ;鼠标中键移动窗口
如果其他按键,如右键按下,则中键按中键执行,现在是右键遇到中键弹出左键了,
我的想法是,在~MButton里面添加if,判断右键情况,结果程序失败了,怎么回事能。


1楼2019-07-07 20:39回复
    ~MButton Up::Send, {space up}{LButton up} ;鼠标中键移动窗口
    #if, not GetKeyState("RButton", "P") ;如果右键按下则不触发
    ~MButton::
    ifWinActive ahk_class Photoshop
    Send, {space down}{LButton down} ;鼠标中键移动窗口
    return
    #if
    ;不造你要干嘛,最好说清楚


    IP属地:上海2楼2019-08-08 01:48
    收起回复
      2025-07-23 19:54:51
      广告
      不感兴趣
      开通SVIP免广告
      MButton::
      if !getkeystate("RButton","P")
      {
      Send, {space down}{LButton down}
      KeyWait MButton
      Send, {space up}{LButton up}
      }
      Else
      Send, {MButton}
      return


      IP属地:江苏4楼2022-05-13 17:50
      回复