【问题标题】:I want to do the same thing done here with ahk but using right mouse button我想在这里用 ahk 做同样的事情,但使用鼠标右键
【发布时间】:2020-11-03 20:23:51
【问题描述】:

所以我看到this 的帖子与我的非常相似,但我想做同样的事情 op 想做但不是按住 ctrl 我按住鼠标右键。谢谢。

我尝试过这样的事情:

suspend
send {RButton Down}{WheelUp}{RButton Up}::Send, {LControl Down}{LWin Down} 
{Right}{LWin Up}{LControl Up}
return


F12::suspend

但是当我运行不是我想要的脚本时,它会立即执行操作。

【问题讨论】:

    标签: windows autohotkey


    【解决方案1】:

    你来了,

    ~RButton & WheelUp::
        Send, {LWin down}{LCtrl down}{Right}{LWin up}{LCtrl up}
        return
    
    ~RButton & WheelDown::
        Send, {LWin down}{LCtrl down}{Left}{LWin up}{LCtrl up}
        return
    

    刚刚替换了组合键并添加了一个passthrought,所以右键可以正常工作

    【讨论】:

    • 如果我可以问一下,开头的~ 是干什么用的?
    • ~ 执行代码后允许组合键通过
    猜你喜欢
    • 2020-09-08
    • 1970-01-01
    • 1970-01-01
    • 2014-01-26
    • 1970-01-01
    • 2019-08-06
    • 1970-01-01
    • 1970-01-01
    • 2022-06-14
    相关资源
    最近更新 更多