Jump to content
Sign in to follow this  

Start a GUI, gather input, Run a program ...

Recommended Posts

I would like to use a GUI to gather input from the user(couple of input boxes) then use the RUN command to start a program and use the gathered input to control the program that i am running. Can you close and kill a GUI without closing the script???

THX greg

Share this post

Link to post
Share on other sites

this should answer your question

#include <GUIConstants.au3>

GUICreate("My GUI") ; will create a dialog box that when displayed is centered

GUISetState ()    ; will display an empty dialog box

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop

GUIDelete();; will return 1

MsgBox(0,"test","still here")

SciTE for AutoItDirections for Submitting Standard UDFs


Don't argue with an idiot; people watching may not be able to tell the difference.


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...