Hold down a key as long as I'm holding down a mouse button
Posted: 26 Dec 2018, 01:43
I want my LShift to be held down as long as I'm holding down my MButton. I wrote the script mentioned below but what it does is locks the LShift key down and does not release it even after I let go of my MButton. Where am I going wrong?
MButton::
Loop {
Send {LShift down}
}Until !GetKeyState("MButton","P")
Return
MButton::
Loop {
Send {LShift down}
}Until !GetKeyState("MButton","P")
Return