Jump to content



Photo

Script exits after button push


  • Please log in to reply
5 replies to this topic

#1 SlimShady

SlimShady

    AutoIt lover

  • Active Members
  • PipPipPipPipPipPip
  • 2,383 posts

Posted 19 June 2004 - 11:46 PM

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 by SlimShady, 19 June 2004 - 11:47 PM.






#2 Nutster

Nutster

    Developer at Large

  • Developers
  • 1,450 posts

Posted 19 June 2004 - 11:58 PM

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 by Nutster, 19 June 2004 - 11:59 PM.

David NuttallNuttall Computer ConsultingAutoIt allows me to re-invent the wheel so much faster.An Aquarius born during the Age of AquariusI'm off to write a wizard, a wonderful wizard of odd...

#3 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 8,925 posts

Posted 20 June 2004 - 08:30 AM

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 :D

#4 SlimShady

SlimShady

    AutoIt lover

  • Active Members
  • PipPipPipPipPipPip
  • 2,383 posts

Posted 20 June 2004 - 09:41 AM

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 :D

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.

#5 tutor2000

tutor2000

    Universalist

  • Active Members
  • PipPipPipPipPip
  • 295 posts

Posted 21 June 2004 - 12:45 AM

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 eventually

Rick
Only $2.00 with Resale Rights How to Block Better for Martial Artists and NonMartial Artistshttp://kirkhamsebooks.com/MartialArts/Bloc...tterEbook_m.htm

#6 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 8,925 posts

Posted 21 June 2004 - 06:54 AM

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. :D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users