AcidCorps Posted July 1, 2007 Share Posted July 1, 2007 I have a script (just started making it so most functions do nothing right now) what I'm trying to do now is refresh the input box after the browse button is clicked and a folder is found #include<guiconstants.au3> Global $gui = GUICreate( "Edit XP Setup", 400, 430 ) GUISetState( ) Global $Folder = GUICtrlCreateInput($FolderBrowse, 30, 10, 230, 20) Global $Browse = GUICtrlCreateButton("Browse", 280, 10, 90, 20 ) Global $PreSetupScript = GUICtrlCreateEdit( "", 30, 70, 340, 140 ) Global $T39Script = GUICtrlCreateEdit( "", 30, 240, 340, 140 ) Global $PreSetupCheck = GUICtrlCreateCheckbox( "Presetup", 30, 50 ) Global $T39Check = GUICtrlCreateCheckbox( "T-39 Batch File", 30, 220 ) Global $Finished = GUICtrlCreateButton( "Finished", 30, 390, 90, 30 ) Global $Cancel = GUICtrlCreateButton( "Cancel", 280, 390, 90, 30 ) $msg = 0 While $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg( ) Select case $msg = $Browse $FolderBrowse = FileSelectFolder("Choose a folder.", "") case $msg = $Finished Exit case $msg = $Cancel Exit EndSelect WEnd Link to comment Share on other sites More sharing options...
Helge Posted July 1, 2007 Share Posted July 1, 2007 #include <guiconstants.au3> Global $gui = GUICreate( "Edit XP Setup", 400, 430 ) Global $Folder = GUICtrlCreateInput("", 30, 10, 230, 20) Global $Browse = GUICtrlCreateButton("Browse", 280, 10, 90, 20 ) Global $PreSetupScript = GUICtrlCreateEdit( "", 30, 70, 340, 140 ) Global $T39Script = GUICtrlCreateEdit( "", 30, 240, 340, 140 ) Global $PreSetupCheck = GUICtrlCreateCheckbox( "Presetup", 30, 50 ) Global $T39Check = GUICtrlCreateCheckbox( "T-39 Batch File", 30, 220 ) Global $Finished = GUICtrlCreateButton( "Finished", 30, 390, 90, 30 ) Global $Cancel = GUICtrlCreateButton( "Cancel", 280, 390, 90, 30 ) GUISetState( ) $msg = 0 While $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg( ) Select case $msg = $Browse $FolderBrowse = FileSelectFolder("Choose a folder.", "") If NOT @error Then GUICtrlSetData($Folder, $FolderBrowse) case $msg = $Finished Exit case $msg = $Cancel Exit EndSelect WEnd Link to comment Share on other sites More sharing options...
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