title: How can I use autohotkey to stop WASD movement while holding down the left mouse button?
body: <p>I'm interested in disabling the w,a,s, &amp; d keys while holding down the left mouse button.
  (Games such as cs:go and valorant penalize shooting while moving, so I'd like to preclude that situation entirely).
  I just learned about autohotkey, so I'm sorry if I offend someone with this attempt at code(which obviously doesn't work):</p>
  <pre><code>while (GetKeyState(&quot;LButton&quot;, &quot;P&quot;))
  {
      w::return
      a::return
      s::return
      d::return       
  } 
  </code></pre>
  <p>Thanks, much appreciated!</p>