AcidCorps Posted June 11, 2007 Posted June 11, 2007 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
GaryFrost Posted June 11, 2007 Posted June 11, 2007 where is your GuiGetMsg? SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
poisonkiller Posted June 11, 2007 Posted June 11, 2007 #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
AcidCorps Posted June 11, 2007 Author Posted June 11, 2007 heh thanks, i knew it was something stupid like that
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now