13ktuz Posted August 6, 2012 Share Posted August 6, 2012 (edited) This is my current code: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <ProgressConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <File.au3> #include <string.au3> #Region ### START Koda GUI section ### Form=C:Program Files (x86)AutoIt3Iconsmy menu.kxf $Form1_1 = GUICreate("Form1", 346, 127, 192, 124) $MenuItem1 = GUICtrlCreateMenu("File") $MenuItem2 = GUICtrlCreateMenuItem("Options", $MenuItem1) $MenuItem3 = GUICtrlCreateMenuItem("Exit (Alt+F4)", $MenuItem1) $MenuItem4 = GUICtrlCreateMenu("Help") $MenuItem5 = GUICtrlCreateMenuItem("About", $MenuItem4) $Progress1 = GUICtrlCreateProgress(96, 72, 150, 17) $Input1 = GUICtrlCreateInput("", 96, 24, 145, 21) $Button1 = GUICtrlCreateButton("Explore", 248, 24, 75, 25) $Icon1 = GUICtrlCreateIcon("C:\Program Files (x86)\AutoIt3\Icons\au3.ico", -1, 32, 40, 32, 32) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 EndSwitch WEnd I would like to know how to pop up a "mini-explorer(as when you install a program this is used for the installer to know where the files are going to be installed") when you click on "Explore" button, and also, i would like to know how to associate the text boss to the left of it, with this "Mini-explorer" so that is actually shows the path where the files are going.I've never done this before and Koda Helpfile doesn't have anything that will help me with this, so I'd appreciate any help, it's the first time I'm building a program of my own Edited August 6, 2012 by Melba23 Added code tags Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 6, 2012 Moderators Share Posted August 6, 2012 13ktuz,Try this: Case $Button1 $sPath = FileSelectFolder("Select a Folder", "") MsgBox(0, "Selected Folder", $sPath)And when you post code, please use Code tags - put [autoit] before and [/autoit] after your posted code. I have done it above - you can how much better it looks. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
13ktuz Posted August 6, 2012 Author Share Posted August 6, 2012 (edited) You're an angel, I couldn't be happier at the moment Thank you so much for taking a bit of your time to help a fellow programmer(in an early stage) By the way, I'm having a syntax error right at the beggining of this code Case $Button1 Gives me an error right at this part. Any special reason why? Edited August 6, 2012 by 13ktuz Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 6, 2012 Moderators Share Posted August 6, 2012 13ktuz, That is why we are here. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
13ktuz Posted August 6, 2012 Author Share Posted August 6, 2012 I'm having a syntax error right at the beggining of this code Case $Button1 Gives me an error right at this part. Any special reason why? Link to comment Share on other sites More sharing options...
13ktuz Posted August 6, 2012 Author Share Posted August 6, 2012 Nevermind this i figured it out!!! >.< #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <ProgressConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <File.au3> #include <string.au3> #Region ### START Koda GUI section ### Form=C:Program Files (x86)AutoIt3Iconsmy menu.kxf $Form1_1 = GUICreate("Form1", 346, 127, 192, 124) $MenuItem1 = GUICtrlCreateMenu("File") $MenuItem2 = GUICtrlCreateMenuItem("Options", $MenuItem1) $MenuItem3 = GUICtrlCreateMenuItem("Exit (Alt+F4)", $MenuItem1) $MenuItem4 = GUICtrlCreateMenu("Help") $MenuItem5 = GUICtrlCreateMenuItem("About", $MenuItem4) $Progress1 = GUICtrlCreateProgress(96, 72, 150, 17) $Input1 = GUICtrlCreateInput("", 96, 24, 145, 21) $Button1 = GUICtrlCreateButton("Explore", 248, 24, 75, 25) $Icon1 = GUICtrlCreateIcon("C:\Program Files (x86)\AutoIt3\Icons\au3.ico", -1, 32, 40, 32, 32) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 $temp = FileSelectFolder("folder to search", "", 6, @ScriptDir) If $temp <> '' Then GUICtrlSetData("", $temp, $temp) EndSwitch 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