Jump to content

Buttons wont work


Recommended Posts

I had this script working and then I did something which made it so my buttons wont work now. can anyone figure out what I took out that I needed?

#include<guiconstants.au3>
Global $gui = GUICreate( "My GUI", 856, 642 )
GUISetState( )
Global $control1 = GUICtrlCreateLabel( "Installation Location:", 10, 10, 100, 20 )
Global $Location = GUICtrlCreateInput( "C:\Program Files\Acid Corps\Writer", 115, 10, 240, 20 )
Global $control2 = GUICtrlCreateButton( "Browse", 360, 10, 50, 20 )
Global $Exit = GUICtrlCreateButton( "Cancel/Exit", 10, 255, 80, 20 )
Global $Finished = GUICtrlCreateButton( "Finished", 180, 255, 70, 20 )
$msg = 0
While $msg <> $GUI_EVENT_CLOSE
        Select
    case $msg = $Control2
            FileSelectFolder("Brwose","C:\Program Files\Acid Corps\Writer")
    Case $msg = $Exit
        Exit
    Case $msg = $Finished
        Exit;temp until i get this part figured out
    EndSelect
WEnd
Func Location( )
        sleep( 10 )
EndFunc
Func control1( )
        sleep( 10 )
EndFunc
Link to comment
Share on other sites

#include <GUIConstants.au3>
$gui = GUICreate( "My GUI", 856, 642 )
$control1 = GUICtrlCreateLabel( "Installation Location:", 10, 10, 100, 20 )
$Location = GUICtrlCreateInput( "C:\Program Files\Acid Corps\Writer", 115, 10, 240, 20 )
$control2 = GUICtrlCreateButton( "Browse", 360, 10, 50, 20 )
$Exit = GUICtrlCreateButton( "Cancel/Exit", 10, 255, 80, 20 )
$Finished = GUICtrlCreateButton( "Finished", 180, 255, 70, 20 )
GUISetState( )
While 1
    $msg = GUIGetMsg()
        Select
    Case $msg = $Control2
            FileSelectFolder("Browse","C:\Program Files\Acid Corps\Writer")
    Case $msg = $Exit
        Exit
    Case $msg = $Finished
        Exit;temp until i get this part figured out
    Case $msg = $GUI_EVENT_CLOSE
        Exit
    EndSelect
WEnd
Func Location( )
        sleep( 10 )
EndFunc
Func control1( )
        sleep( 10 )
EndFunc

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