Jump to content

Script exits after button push


Recommended Posts

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
Link to comment
Share on other sites

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

David Nuttall
Nuttall 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

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...