Jump to content

Recommended Posts

Posted

Why this do not work? The gui window closes immediately after script run.

GuiCreate ("My first AutoIt GUI")              ; start the definition

GuiSetControl ("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 box

GuiShow ()

Posted

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

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
×
×
  • Create New...