title: AutoHotkey: While 2 keys are pressed = press 3rd key?
body: <p>In AutoHotkey, how can I do the following:</p>
  
  <p>While SPACE and "either or a combination of [A, S, D, W]" are pressed down at the same time, send key LSHIFT every X milliseconds; do this until SPACE and and A, S, D, W are not pressed.</p>
  
  <p>I'm a beginner. I tried multiple ways, but it didn't work at all.</p>
  
  <p>Any help would be much appreciated!</p>
  
  <p>I tried this, it does nothing:</p>
  
  <blockquote>
    <p>q::</p>
    
    <p>Loop<br>
    {<br>
    If GetKeyState("Space", "P") &amp;&amp; GetKeyState("w", "P")</p>
  
  <pre><code>{
  Send, {LShift}
  Sleep, 500
  
  If Not GetKeyState("Space", "P") &amp;&amp; GetKeyState("w", "P")
  
   {
    Pause
    }
  </code></pre>
    
    <p>} </p>
    
    <p>}</p>
  </blockquote>