PDowning Posted July 3, 2013 Posted July 3, 2013 I found Melba's UDF about selecting directory's and drive's. I have a use for this possibly. I want to create a GUI that roots itself at a folder level on the left side, showing all directories below it. If you click on one of those listings, all files and folders will be listed on the right of the GUI. From there the user can double-click the app for execution. I have been beating my head around all day, trying to figure out KODA, but have been rather unsuccessful. Is this even possible? Something like a Windows Explorer view: Yes I realize this makes it more difficult, probably beyond my capabilities, but it is to keep the end user comfortable with what they are used to using which is Zenworks Application Launcher. Is this even possible or should I seek a replacement that has to be paid for, which I already know the higher-ups will deny.
Moderators JLogan3o13 Posted July 3, 2013 Moderators Posted July 3, 2013 I guess my question is, what do you expect the end user to do in this view? If you're going to present them "a Windows Explorer view" and then have them select files and folders, why not just use Windows Explorer, with FileOpenDialogue? FileOpenDialog("My Explorer", "C:\", "All(*.*)") "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Mat Posted July 3, 2013 Posted July 3, 2013 So you want an explorer treeview. This is the most commonly used UDF for this: '?do=embed' frameborder='0' data-embedContent>> AutoIt Project Listing
AZJIO Posted July 3, 2013 Posted July 3, 2013 (edited) http://pastebin.com/s4LNfWVL by AZJIO>ShellTristateTreeView - KaFu>Tristate GUI TreeView - Holger>ShellTreeView - Rasim>explorer by OldCoder Edited July 3, 2013 by AZJIO My other projects or all
PDowning Posted July 3, 2013 Author Posted July 3, 2013 I guess my question is, what do you expect the end user to do in this view? If you're going to present them "a Windows Explorer view" and then have them select files and folders, why not just use Windows Explorer, with FileOpenDialogue? FileOpenDialog("My Explorer", "C:\", "All(*.*)") Because we need the tree structure and hopefully can get rid of the Libraries/Favorites portion.
PDowning Posted July 3, 2013 Author Posted July 3, 2013 Wow. Thanks guys, those are most useful there. Only problem is getting the WinAPIex.au3. The link given in the link is broke. And I looked in the download section and didn't see it there and I was linked to the beta download section and couldn't find it there either. Could someone point me to a valid link for this one?
BrewManNH Posted July 3, 2013 Posted July 3, 2013 http://www.autoitscript.com/autoit3/files/beta/autoit/ If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
PDowning Posted July 3, 2013 Author Posted July 3, 2013 http://www.autoitscript.com/autoit3/files/beta/autoit/ that's all I see. I have scoured the directories. nothing.
Moderators Melba23 Posted July 3, 2013 Moderators Posted July 3, 2013 PDowning,Download and open the SFX file - the WinAPIEx file UDF is within it. 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
BrewManNH Posted July 3, 2013 Posted July 3, 2013 You have to download the beta version to get the WinAPIEx file, which is now included as a standard UDF. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
AdmiralAlkex Posted July 3, 2013 Posted July 3, 2013 It's right there on the picture, you even clicked on it. 3.3.9.4 is the latest beta.. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
PDowning Posted July 3, 2013 Author Posted July 3, 2013 Thanks. No one mentioned that it was included in the autoit beta. I was expecting to see WinAPIex.au3 listed as a downloadable file. Now I know.
PDowning Posted July 8, 2013 Author Posted July 8, 2013 Well, after toying with Koda for a bit I managed to get this created as a tree list. expandcollapse popup#include <GUIConstantsEx.au3> #include <ListViewConstants.au3> #include <TreeViewConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=g:\launcher gui\apptreeview-1.kxf $AppViewMain = GUICreate("EBRPSS Application Launcher", 615, 438, 190, 125) $AppTree1 = GUICtrlCreateTreeView(0, 0, 241, 433) $AppTree1_0 = GUICtrlCreateTreeViewItem("Accessories", $AppTree1) $AppTree1_1 = GUICtrlCreateTreeViewItem("ActivInspire", $AppTree1) $AppTree1_2 = GUICtrlCreateTreeViewItem("Creativity", $AppTree1) $AppTree1_3 = GUICtrlCreateTreeViewItem("EOC", $AppTree1) $AppTree1_4 = GUICtrlCreateTreeViewItem("Internet Resources - Student", $AppTree1) $AppTree1_5 = GUICtrlCreateTreeViewItem("Internet Resources - Teachers", $AppTree1) $AppTree1_6 = GUICtrlCreateTreeViewItem("Language Arts", $AppTree1) $AppTree1_7 = GUICtrlCreateTreeViewItem("Frog Street", $AppTree1_6) $AppTree1_8 = GUICtrlCreateTreeViewItem("Reading", $AppTree1_6) $AppTree1_9 = GUICtrlCreateTreeViewItem("Textbook Resources", $AppTree1_6) $AppTree1_10 = GUICtrlCreateTreeViewItem("Treasures Instructional Navigator", $AppTree1_9) $AppTree1_11 = GUICtrlCreateTreeViewItem("Leap", $AppTree1) $AppTree1_12 = GUICtrlCreateTreeViewItem("Library Resources", $AppTree1) $AppTree1_13 = GUICtrlCreateTreeViewItem("ABC-CLIO", $AppTree1_12) $AppTree1_14 = GUICtrlCreateTreeViewItem("Math", $AppTree1) $AppTree1_15 = GUICtrlCreateTreeViewItem("Microsoft Office", $AppTree1) $AppTree1_16 = GUICtrlCreateTreeViewItem("System Utilities", $AppTree1) $ListView1 = GUICtrlCreateListView("Choose Program", 240, 0, 380, 440) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd The GUI is the way I want it. The coding behind it still baffles me, even after reading the help files and reading other's code, it just all starts running together . So, even though I want to ask for help, I can't expect anyone to do it for me. I am just accepting that I am in above my head without a life preserver, but a concrete block around my feet instead. So I admit defeat. Waving the proverbial white flag (need to add an emoticon for this).
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