Jump to content

Tree Veiw as file Browse


joedoe
 Share

Did you Find this confusing?  

3 members have voted

  1. 1. Was I able to clearly express what I wanted?

    • Yes, I understood perfectly
      0
    • Could have done Better, but I got the idea
      2
    • Hard to Follow
      0
    • Was he realy speaking english?
      1


Recommended Posts

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:

post-15515-1159416569_thumb.jpg <- 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 by joedoe
Link to comment
Share on other sites

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 files

local $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

EndIf

fileclose($s)

GuiSetState()

.

.

..

But if I misunderstood (I often do) tell me.

Edited 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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...