SlimShady Posted June 19, 2004 Share Posted June 19, 2004 (edited) My script exits after I select an item from a listbox, choose an item from a combobox, click on a button. The button shouldn't exit the script. In the While loop there's only this that exits the script: Select Case $msg = -3 Exit ...other code... Do you have any idea why it exits spontaneously? Edited June 19, 2004 by SlimShady Link to comment Share on other sites More sharing options...
Nutster Posted June 19, 2004 Share Posted June 19, 2004 (edited) Make sure that you are running the latest unstable. Post the code that sets up the button and gets the result back. Maybe that will help debug it. Edited June 19, 2004 by Nutster David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd... Link to comment Share on other sites More sharing options...
jpm Posted June 20, 2004 Share Posted June 20, 2004 My script exits after I select an item from a listbox, choose an item from a combobox, click on a button. The button shouldn't exit the script. In the While loop there's only this that exits the script: Select Case $msg = -3 Exit ...other code... Do you have any idea why it exits spontaneously?Perhaps you miss to be in the Opt("GuiNotifyMode",1) mode. By default a click on a button close the gui so the $msg will be -3 Link to comment Share on other sites More sharing options...
SlimShady Posted June 20, 2004 Author Share Posted June 20, 2004 Perhaps you miss to be in the Opt("GuiNotifyMode",1) mode.By default a click on a button close the gui so the $msg will be -3 That was the problem.Now you see an example of a person coding with AutoIt Gui can get stuck.A tutorial should be made for beginners to start with.With examples, screenshots, tips and important notes. Link to comment Share on other sites More sharing options...
tutor2000 Posted June 21, 2004 Share Posted June 21, 2004 That was the problem.Now you see an example of a person coding with AutoIt Gui can get stuck.A tutorial should be made for beginners to start with.With examples, screenshots, tips and important notes.I appreicate all tutorials and examples even being the HTA nut I am I may use gui eventuallyRick Link to comment Share on other sites More sharing options...
jpm Posted June 21, 2004 Share Posted June 21, 2004 That was the problem.Now you see an example of a person coding with AutoIt Gui can get stuck.A tutorial should be made for beginners to start with.With examples, screenshots, tips and important notes.in the help there are 3 levels to work with Gui. You certainly choose the advanced ones. It is not,from my point of you, the way to start. It is true that's Jon is changing a little bit what I first did. I am not for sure he will suppress the beginner mode (GuiWaitClose)Reread the current "Gui reference" part. 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