Jump to content

will not close window?


Swift
 Share

Recommended Posts

umm..heres my script...it wont close the window @ $GUI_EVENT_CLOSE....soo....anyhelp would be great :D

#include <GUIConstants.au3>
GUICreate("1", 150, 150, 1, 1)
GUISetState()
GUICreate("2", 150, 150, 160, 160)
GUISetState()
GUICreate("3", 150, 150, 250, 250)
GUISetState()
GUICreate("4", 150, 150, 1, 150)
GUISetState()
GUICreate("5", 150, 150, 1, 350)
GUISetState()
    $msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then Exit

While 1
WEnd
Link to comment
Share on other sites

umm..heres my script...it wont close the window @ $GUI_EVENT_CLOSE....soo....anyhelp would be great :P

You have your GUIGetMsg() before the while-loop not in it!!!

Edit: ohh DanP2 posted a sec earlier..... :D

Edited by TzarAlkex
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...