title: AutoHotKey - "Continue" and "Cancel" Buttons
body: <p>I am a newbie with AutoHotKey, and to this point I consider myself fortunate to have created a script to automate about 90% of the data entry in a window.  I'm now trying to kick it up a notch and add a warning/caution GUI to my data entry script.  I want to pause the running script and open a GUI that will alert me to look at what has already been entered, with one button to allow things to proceed if a particular entry looks OK, and another to dump out of both the GUI and the remainder of the script if the entry is incorrect.  </p>
  
  <p>Here's some code I came up with, mixed with some pseudocode to help show what I want to do.</p>
  
  <p><code>(Previous data entry script executes to this point)<br>
  Stop the script<br>
  Gui, New<br>
  Gui, Add, Text, 'n Check Authorization Number to be sure it is A1234 (FY 15).  ; Wraps text<br>
  Gui, Add, Button, Default, Continue<br>
  Gui, Add, Button, Quit<br>
  Gui, Show, IMPORTANT!<br>
  If Continue button is clicked<br>
  ----Continue with script<br>
  If Abort button is clicked<br>
  ----Close the GUI<br>
  ----Exit the entire script
  (Resume where I left off with rest of the data entry script)</code></p>
  
  <p>I've read the AHK Help file and am stumped about how to make these buttons work, as well as how to properly return from the GUI back to the script if I hit continue, or quit the whole thing if I spot a problem.  I can tweak things like the size of the GUI and the button placement; what's most important is getting the GUI code right.  Can someone help with the code?  (The last programming class I took was in 2003, so I have forgotten a whole lot!)</p>