Jump to content
Sign in to follow this  
AcidCorps

Buttons wont work

Recommended Posts

AcidCorps

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

Share this post


Link to post
Share on other sites
poisonkiller

#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

Share this post


Link to post
Share on other sites
AcidCorps

heh thanks, i knew it was something stupid like that :)

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  

×