title: Pause script programmatically in AutoIt?
body: <p>What function can I use to pause a script in <a href="http://en.wikipedia.org/wiki/AutoIt" rel="nofollow">AutoIt</a>?</p>
  
  <p>I know I can use sleep like this:</p>
  
  <pre><code>Func TogglePause()
      $Paused = NOT $Paused
      While $Paused
          sleep(100)
          ToolTip('Script is "Paused"',0,0)
      WEnd
      ToolTip("")
  EndFunc
  </code></pre>
  
  <p>But is there a function for pause which has been implemented in AutoIt?</p>