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
Hold down a key as long as I'm holding down a mouse button Topic is solved
Re: Hold down a key as long as I'm holding down a mouse button Topic is solved
Code: Select all
MButton::
Send {Shift down}
While GetKeyState(A_ThisHotkey, "P")
Sleep 10
Send {Shift up}
Return
live ? long & prosper : regards
Re: Hold down a key as long as I'm holding down a mouse button
Thanks, bud. It worked. Also go the logic.
Who is online
Users browsing this forum: bobstoner289, Chunjee, macromint, peter_ahk and 319 guests