Chrome doesn't recognize mouse dragging with RMB anymore. I think the problem lies in the way hotkeys with & work. It makes the mouse button not pressed down while dragging.
For example, I found that:
Code: Select all
RButton::
SendInput {RButton down}
KeyWait RButton
SendInput {RButton up}
return
works, in that it manages to send RMB through but I can still drag the mouse as normal. Similar working script is this:
Code: Select all
RButton::
sendinput {RButton down}
while GetKeystate("RButton","P")
{
sleep 50
}
sendinput {RButton up}
return
However, this kind of code:
Code: Select all
RButton & LButton::
SendInput {RButton down}
KeyWait RButton
SendInput {RButton up}
return
makes it such that dragging is no longer recognized. I think the first key in a hotkey combination might be locked until it's released (but not held), then it is sent upon release no matter the code that follows or something like that..?
EDIT: Ideally, I would like to use ~RButton here to make sure I can still drag, but not actually send any RButton, if that makes sense.
EDIT EDIT: Alternatively, if there is a way to detect if "s" was sent recently, I could perhaps use that somehow. Can you do {RButton up} but hide it from Windows? As in, if "s" was sent recently, I want RButton to be not held anymore, but I don't want to send it (to prevent the context menu to pop up).