Attempting to hold a button and then hold another button with it a second or 2 later
Posted: 15 Feb 2018, 13:42
Hi,
I'm an AutoHotKey novice, I'm attempting to write a script that when my Right Mouse Button is pressed and held it performs the function the right mouse button is binded to, but a second later it then holds my left shift down and then when I release the Right mouse button, it acts as though both keys have been released.
I have written the below, but it doesn't work everytime and sometimes it doesn't pick up I have released the Right Mouse Button and I have to hit the Right Mouse Button again.
Can anyone help please.
I'm an AutoHotKey novice, I'm attempting to write a script that when my Right Mouse Button is pressed and held it performs the function the right mouse button is binded to, but a second later it then holds my left shift down and then when I release the Right mouse button, it acts as though both keys have been released.
I have written the below, but it doesn't work everytime and sometimes it doesn't pick up I have released the Right Mouse Button and I have to hit the Right Mouse Button again.
Can anyone help please.
Code: Select all
RButton::
;Send {LShift down}{RButton down}
Send {RButton down}
Sleep 2000
Send {LShift down}
While GetKeyState(RButton, "p")
Send {LShift up}{RButton up}
Return