Dralor Posted July 31, 2009 Share Posted July 31, 2009 (edited) In me script don't ork 'X' button (upper right corner) Why? Please help me :< Fixed! Sorry for spam! To trash! Edited July 31, 2009 by Dralor Link to comment Share on other sites More sharing options...
Hawkwing Posted August 1, 2009 Share Posted August 1, 2009 (edited) You need to use Switch..Case..Endswitch to check if the close button has been clicked. #include<GuiConstants.au3> GUICreate("") GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Or you could use guisetonevent($GUI_EVENT_CLOSE, yourfunction) to call a function when the close button is clicked. #include<GuiConstants.au3> Opt("GuiOnEventMode", 1) GUICreate("") GUISetOnEvent($GUI_EVENT_CLOSE, "close") GUISetState() While 1 Sleep(100) WEnd Func close() Exit EndFunc Edited August 1, 2009 by Hawkwing The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now