Jump to content

Variable displayed in Input Box


Recommended Posts

I am trying to get $dir displayed in the Input box after being declared. Is it possible?

; Script generated by AutoBuilder 0.5 Prototype

#include <GuiConstants.au3>

If Not IsDeclared('WS_CLIPSIBLINGS') Then Global $WS_CLIPSIBLINGS = 0x04000000

GuiCreate("MyGUI", 217, 59,(@DesktopWidth-217)/2, (@DesktopHeight-59)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)

$Browse = GuiCtrlCreateButton("Browse", 150, 20, 50, 20)
$Input_2 = GuiCtrlCreateInput("", 10, 20, 130, 20)
   GUICtrlSetState(-1, $GUI_DISABLE)

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $Browse
      $dir = FileSelectFolder("Choose a folder.", "")
   Case Else
    ;;;
    EndSelect
WEnd
Exit
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...