sumit Posted July 12, 2007 Share Posted July 12, 2007 Please tell me How to Exit the script if cancel button of Input Box is pressed ? Link to comment Share on other sites More sharing options...
Valuater Posted July 12, 2007 Share Posted July 12, 2007 Please tell me How to Exit the script if cancel button of Input Box is pressed ? Maybe... $answer = InputBox("Question", "Where were you born?", "Planet Earth") If $answer = "" Then Exit MsgBox(0x0, "answer", $answer) 8) Link to comment Share on other sites More sharing options...
sumit Posted July 12, 2007 Author Share Posted July 12, 2007 Maybe... $answer = InputBox("Question", "Where were you born?", "Planet Earth") If $answer = "" Then Exit MsgBox(0x0, "answer", $answer) 8) Thanks a lot. Link to comment Share on other sites More sharing options...
iimull Posted July 12, 2007 Share Posted July 12, 2007 Thanks a lot.Exit. Who would have thunk it? Takes me back to the GW-BASIC and earlier interpreters. I tried to find this one for a while, and checked under _ApplicationExit, _ProcessExit, Quit, Terminate, Stop, Halt, Alto, Anschlag! and all other kinds of keywords. Just when Microsoft got away from using Exit (VB6), AutoIt started using it. -- ii Link to comment Share on other sites More sharing options...
The_Key_Maker Posted October 5, 2016 Share Posted October 5, 2016 (edited) Not good enough. What if I ask a question and I need a true answer and not empty value? Then I would not be able to exit on value = "" Check out this correct answer!!! Edited October 5, 2016 by The_Key_Maker Link to comment Share on other sites More sharing options...
AutoBert Posted October 5, 2016 Share Posted October 5, 2016 @The_Key_Maker: why necroing so a old thread? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now