autohotkey - Need to send mouse wheel up when SHIFT key is down and left mouse is clicked? -
i want remap left click of mouse mouse wheel when keyboard key(let's shift) hold. should go normal after key released.
here current script:
loop { if(getkeystate("shift", "p")) lbutton::wheelup if(getkeystate("shift", "p")=0) hotkey, *lbutton, off }
i have 2 problems it:
- it remaps left button without pressed key.
- i want continuously "wheel up" long shift key down , left mouse button pressed.
the following send wheelup
every 0.5 seconds long shift , left mouse button pressed:
+lbutton:: sendwheelup := true while (sendwheelup) { send, {wheelup} sleep 500 } return +lbutton up::sendwheelup := false
you can adjust sleep time increase or decrease frequency.
Comments
Post a Comment