Sign in to follow this  
Followers 0
AcidCorps

Refresh inputbox

2 posts in this topic

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

Share this post


Link to post
Share on other sites



#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

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