Jump to content
Sign in to follow this  
litlmike

How To Close Gui

Recommended Posts

litlmike

Is there a way to control how the 'X' in the top right corner of a GUI acts? I just want it to close when clicked.

Is it some sort of constant?

Instead of closing when clicking the 'X' it will run the rest of the script.

Share this post


Link to post
Share on other sites
Pakku

yup there is

a gui looks like this

see for youself how to modifed it

#include<GUIConstants.au3>
GUICreate("My GUI")
GUISetState()
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then
        Exit
    EndIf
WEnd

Share this post


Link to post
Share on other sites
litlmike

yup there is

a gui looks like this

see for youself how to modifed it

#include<GUIConstants.au3>
GUICreate("My GUI")
GUISetState()
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then
        Exit
    EndIf
WEnd
Thanks!

Share this post


Link to post
Share on other sites
slightly_abnormal

welcome to the forums!

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.