ZebrasInBlankets Posted March 6, 2005 Share Posted March 6, 2005 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 More sharing options...
steveR Posted March 6, 2005 Share Posted March 6, 2005 try GUICtrlSetData( $Input_2, $dir ) AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass. 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