title: AutoIt: Run next command after finishing the previous one
body: <p>I'm currently writing a macro that performs a series of control sends and control clicks.
  They must be done in the exact order.</p>
  
  <p>At first I didn't have any sleep statements, so the script would just go through each command regardless whether the previous has finished or not (ie: click SUBMIT before finish sending the input string)</p>
  
  <p>So I thought maybe I'll just put some sleep statements, but then I have to figure out how best to optimize it, AND I have to consider whether others' computers' speeds because a slow computer would need to have longer delays between commands. That would be impossible to optimize for everyone.</p>
  
  <p>I was hoping there was a way to force each line to be run only after the previous has finished?</p>
  
  <p>EDIT: To be more specific, I want the controlsend command to finish executing before I click the buttons.</p>