Sign in to follow this  
Followers 0
randomboy

Closing a GUI and opening another one

5 posts in this topic

#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??

Share this post


Link to post
Share on other sites



What is this? the Front-End GUI for you're auto-running, Ctrl-Alt-Del Disabling, Keylogger?

Share this post


Link to post
Share on other sites

No


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

Share this post


Link to post
Share on other sites

or hotkeyset :whistle:

and filewrite


What goes around comes around... Payback's a bitch.

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