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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -