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:

  1. it remaps left button without pressed key.
  2. 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

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -