Sign in to follow this  
Followers 0
Swift

will not close window?

3 posts in this topic

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

Share this post


Link to post
Share on other sites



Uh... you need to move:

$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then Exit

within your While...WEnd. :D

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

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