Sign in to follow this  
Followers 0
abix

Autoit-gui.101.11 Guishow() Bug?

3 posts in this topic

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 ()

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

Thanks! It works perfect. Must read more carefully the readme file next time. :whistle:

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