Jump to content

Can not close GUI when function is executing


Recommended Posts

While 1
      $nMsg = GUIGetMsg()
      Switch $nMsg
         Case $GUI_EVENT_CLOSE
            SaveSettings()
            GUIDelete()
            Exit
         Case $Button2
            SaveSettings()
            GUIDelete($GUI)
            status()
            checkstatus()
      EndSwitch
   WEnd

This is my GUI script, when i click $Button2 to delete GUI1 and open GUI2, its starting checkstatus(), when its running i cannot close by click X button on top right GUI2 (status())
Thank you!!

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...