title: AutoHotKey keystroke break loop
body: <p>Using AutoHotKey, I have a rather simple loop script that I want to be able to break by the stroke of a key. I tried a few different codes from websites but it doesn't seem to work.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>#g::
  Loop 20
  {
      MouseClick, left,  142,  542
      Sleep, 1000
      MouseClick, left,  138,  567
      Sleep, 1500
      MouseClick, left,  97,  538 
      Sleep, 1000
  }
  </code></pre>