Jump to content

Closing a GUI and opening another one


 Share

Recommended Posts

#include <GUIConstants.au3>
Global $IniFile
Global $GUIWidth
Global $GUIHeight
$GUIWidth = 240
$GUIHeight = 240
$Randomboy = GUICreate("Randomboy", $GUIWidth, $GUIHeight)
$Randomboy_Pos = WinGetPos($Randomboy, "")
GUISetState(@SW_SHOW)
$button_1 = GUICtrlCreateButton ( "", 105, 90, 30, 30)
GUICtrlCreateLabel("DO NOT PRESS", 80, 130)
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $button_1
        GUIDelete()
    EndSelect
Wend
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
GUIDelete()

I have this code and I'm trying to close a GUI and open another one with the button in the middle of it. How would I do this?

I got inside my house, leant back on my bed and began to think...where the hell was my roof?!?!24 hours in a day....24 beers in a case....Coincidence??

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...