title: VBScript InputBox - How to identify when the Cancel button is pressed?
body: <p>How can I make my VBScript cancel a process when the cancel button is pressed? When pressing "OK" I'd like the VBScript to open a new <code>InputBox</code>. I've gotten this to kinda work, but I'd also like to give a function the "Cancel" button. A function that whould stop the whole VBScript from opening any other <code>MsgBox</code> or <code>InputBox</code>.</p>
  
  <p>I have tried something like this:</p>
  
  <pre><code>Set shell = createobject("wscript.shell")
  strtext = InputBox("text")
      vbCancel
  If vbCancel then 
    WScript.Quit
  End if
  </code></pre>