joedoe Posted September 28, 2006 Share Posted September 28, 2006 (edited) I am writing a Video Logging program for my school, I have an expanding tree view, I now need to be able to copy the tree view item into another. I also do not know if there is a way to have the Tree view be a browser for a Directory and all it's Sub-Directories. This is a screen shot of what i looks like now, the Gui is fine, but the actual script is not: <- Folder not expanded : Folder expanded, and showing one txt in it -> The full program script is attached, but the "LogNewClips" Button will generate an error, because it needs to be installed for that to run, the "Veiw Clips and Info" should be fine though. In the final when any of the treeveiw items is selected each of the out put data strings (Clip Name, Reel Name, Time Code, ect) will be read from a specific line in the .txt, .eg line 2 of every txt will be the clip name, this data is entered in the logging menu. To summarize, how do I create a treeview that will list all subdirectories of a specific directory, and then when expanded show the names off all .txt files in each sub-directory. Thank you for your Help, And I hope I haven't totally confused you. ;Edited for Spelling and Grammar ;The purpose of this program is to allow students to edit video projects using a text based system to alleviate some of the time strain placed on the only two video editing systems, That last component of this Program will control the editing station, so each student will only have to spend <2 hours using the station for the final touch up editing. Any video editors out there who would like to give a suggestion please do.Pro_Logger_V0.1.au3 Edited September 28, 2006 by joedoe Link to comment Share on other sites More sharing options...
martin Posted September 28, 2006 Share Posted September 28, 2006 (edited) I think what you want is FileFindFirstFile and FileFindNextFile. Then you can add the text files like this....$Clip1Name = "Jumpingmonkeys"$Clip1 = GUICtrlCreateTreeViewitem ($Clip1Name, $Reel1);start of bit to list fileslocal $ar[100];assuming no more than 100 text files in folder$s = FileFindFirstFile("c:\folder to look in\*.txt") if $s <> -1 Then;if not an error $c = 0;set first element While 1 $file = FileFindNextFile($s) If @error Then ExitLoop $ar[$c] = GUICtrlCreateTreeViewitem ($file,$Clip1) $c = $c + 1 WEnd EndIffileclose($s) GuiSetState()....But if I misunderstood (I often do) tell me. Edited September 28, 2006 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
joedoe Posted October 2, 2006 Author Share Posted October 2, 2006 (edited) Thank you Martin that is just what I need for this project and many others. You understood perfectly Edited for Spelling and Grammar Edited October 2, 2006 by joedoe 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