Sign in to follow this  
Followers 0
SlimShady

Script exits after button push

6 posts in this topic

#1 ·  Posted (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 by SlimShady

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 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...

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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


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

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0