重新映射右键单击并拖动为xbutton1单击并拖动 [英] remapping right click and drag as xbutton1 click and drag

查看:65
本文介绍了重新映射右键单击并拖动为xbutton1单击并拖动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想重新映射右键单击并拖动,就像XButton1单击并拖动一样.这是我尝试过的:

I want to remap right click and drag as XButton1 click and drag. This is what I tried:

RButtonclickdrag :: XButton1clickdrag

RButtonclickdrag::XButton1clickdrag

我认为我没有正确的命令,但是我搜索了很多,却没有发现其他东西.有人可以给我些帮助吗?

I think I don't have the correct commands but I have searched a lot and not found anything else. Could somebody please give me some help?

谢谢,艾伦

推荐答案

这里是实现此目的的一种方法.让我知道这是否适合您的需求.时间设置为100毫秒.

Here is a way to do this. Let me know if this suits your needs. The time is set to 100 ms.

#SingleInstance Force
#installKeybdHook
#Persistent

#ifWinActive ahk_class CorelDRAW 15.2
    $RButton::
        Sleep, 100
        GetKeyState, KeyState, RButton, p
        if KeyState = U
        {
            ;ToolTip, Short Press ; Activate to test behaviour
            Send, {RButton}
            Return
        }
        ;ToolTip, Long Press Started ; Activate to test behaviour
        sendmessage,0x111,0x1991d,0 ;pan one-shot
        MouseClick,L,,,1,0,D
        KeyWait, RButton
        ;ToolTip, Long Press Ended ; Activate to test behaviour
        MouseClick,L,,,1,0,U
    Return
#ifwinactive 

这篇关于重新映射右键单击并拖动为xbutton1单击并拖动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆