Sign in to follow this  
Followers 0
PDowning

Help from the AutoIT gods?

13 posts in this topic

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:

applauncher_zpseb102a69.jpg

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.

 

Share this post


Link to post
Share on other sites



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(*.*)")

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

 

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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 Gude
How 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

Share this post


Link to post
Share on other sites

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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 Gude
How 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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Well, after toying with Koda for a bit I managed to get this created as a tree list. 

#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 :ermm: .  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. :oops:   

So I admit defeat. Waving the proverbial white flag (need to add an emoticon for this). 

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