Jump to content
Sign in to follow this  
abix

Autoit-gui.101.11 Guishow() Bug?

Recommended Posts

abix

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
jpm

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
abix

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.