0

Video: https://youtu.be/zbMQ6BOP6_E

Let me explain my scenario.

I'm holding down the 1 key producing a string of 1's. When I right or left click my mouse, the string of 1's stop briefly before resuming once again to produce a string of 1's inputs. The 1 key has been pressed and held down once throughout this.

The problem occurs when I remap the left and right mouse clicks to a key on the keyboard (in this case Numpad8 and Numpad9; this is what happens.

I'm once again holding down the 1 key producing a string of 1's. When I press the remapped Numpad keys the string of 1's stop and the mouse clicks work as intended; however, once I release the remapped Numpad keys the string of 1's do not continue like in the first scenario.

Question: How do I remap the mouse clicks to a key so that the string of 1's continues afterwards once I release it?

This is what I've got so far but it still isn't reproducing the string of 1's afterwards (as if I had the 1 key still held down)

Numpad9::RButton

Numpad8::LButton

^Numpad9::
  {
    SendInput {^LButton}
    if GetKeyState(1,"P")
        SendInput {1 up}{1 down}
  }
return

^Numpad8:: 
  {
    SendInput {^LButton}
    if GetKeyState(1,"P")
        SendInput {1 up}{1 down}
  }
return

Escape::
ExitApp
Return

Also have tried this:

$w::
  While GetKeyState("1","P")
  {
    Send, 1
    Sleep, 33.3
  }
Return

Numpad9::RButton

Numpad8::LButton

Escape::
ExitApp
Return
  • Why not use the regular Ease of Access tools in this case? – Seth May 6 at 12:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.