Sign in to follow this  
Followers 0

How To Close Gui

4 posts in this topic

Posted

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



Posted

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

Posted

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

Posted

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  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.