Sign in to follow this  
Followers 0
AramisResearch

How to Kill a GUI and Start Over?

4 posts in this topic

I'm stumped (again).

I have created a nice GUI that gets the info I want it to get and has a rudimentary dummy-check capability. It checks to see if the info you put in for an IP address is even likely to be a valid IP address, and looks for certain other fields to be filled rather than blank. What it NEEDS to do is pop up a window that tells you that you must have goofed, and then send you back to the GUI form. I can get the popup window fine, and I can re-run the function that constitutes the form, but what it does not do is kill the old form window. Anyone have any ideas on how to force it to either go back to the form I started with or kill the bad one and start over?

I have added the code as an attachment as it's too bloody long to just paste in here.

Thanks,

-Chris

GUITest.au3

Share this post


Link to post
Share on other sites



Learning arrays would make your life so much easier. Looks as if all you need is a GUIDelete() if it failed, then recall the GUI again.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

HI,

what about disabling the Button submit until everything is fine. And while he/she fills in the form you do a check loop.

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Learning arrays would make your life so much easier. Looks as if all you need is a GUIDelete() if it failed, then recall the GUI again.

You're right, on both counts. I had to do it the long way first.

Thanks.

-Chris

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