abix Posted March 28, 2004 Share Posted March 28, 2004 Why this do not work? The gui window closes immediately after script run.GuiCreate ("My first AutoIt GUI") ; start the definitionGuiSetControl ("label", "Please Enter ?", 10,10) ; add prompt info$nInput = GuiSetControl ("input", "", 10,30) ; add the input area$nOk = GUISetControl ("button", "OK", 20,70) ; add the button that will close the dialog boxGuiShow () Link to comment Share on other sites More sharing options...
jpm Posted March 28, 2004 Share Posted March 28, 2004 Why this do not work? The gui window closes immediately after script run.Gui always closed when the script terminated.So You need to add a sleep or to way the closing of the Gui with GuiWaitClose.GuiShow is aim to more advanced usage with GuiMsg Link to comment Share on other sites More sharing options...
abix Posted March 28, 2004 Author Share Posted March 28, 2004 Thanks! It works perfect. Must read more carefully the readme file next time. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now