title: AutoHotKey on right mouse click get a keyboard button pressed as well
body: <p>Could someone help me with AutoHotKey Macro to have Q button pressed and released when right mouse button is clicked and Q button pressed and released when right mouse button is released?</p>
  
  <p>Edit:
  <br>Explanation, imagine, that I am playing a game, and when i click right mouse button down (then I hold it) i need to have Q letter auto pressed on the keyboard, so I would get a jump(or crouch) in game at that time and when i release the right mouse button (mouse button up) i would get Q auto pressed again.
  I was trying to write the script and I couldn't get it working.</p>
  
  <p>This is what I came up so far:</p>
  
  <pre><code>    RButton::
      If !Toggler {
      Send, {RButton Down} q
      Return
      }
      Send {RButton Up} q
      Return
  </code></pre>