AL3X Posted December 22, 2007 Share Posted December 22, 2007 (edited) -- Edited July 2, 2015 by AL3X Link to comment Share on other sites More sharing options...
AL3X Posted December 23, 2007 Author Share Posted December 23, 2007 (edited) -- Edited July 2, 2015 by AL3X Link to comment Share on other sites More sharing options...
Richard Robertson Posted December 23, 2007 Share Posted December 23, 2007 There are people who know how to do it, but it's hard to track down comments in uncolored code. Try AutoIt tags and maybe make a list of things outside the code for quicker reference. I'm having trouble reading the code as your stuff isn't english. I'm not quite following what it's doing. As a guess, I'd say that if you have more than one file, they are either in an array or in a single string using a delimiter. If they are in an array, just loop and perform the operation on each array index. If they are delimited, split it, then loop that array. As for bitrate, just check for an empty value (= "") and if it is empty, don't run whatever process. Link to comment Share on other sites More sharing options...
AL3X Posted December 23, 2007 Author Share Posted December 23, 2007 (edited) -- Edited July 2, 2015 by AL3X Link to comment Share on other sites More sharing options...
crzftx Posted December 23, 2007 Share Posted December 23, 2007 well, I assume you possess the knowledge of converting one format to another, else this help will be uselessMake an array containing all of the file names.Use For in conjunction with Ubound to go to each array element.Have it convert the file, and then delete the ListViewItem, check the UDFs if you need help.Done.For the not selected part: If GuiRead($bitrateHandle) <> "" And GuiRead($formatHandle) <> "" Then;do your For loop Link to comment Share on other sites More sharing options...
AL3X Posted December 23, 2007 Author Share Posted December 23, 2007 (edited) -- Edited July 2, 2015 by AL3X Link to comment Share on other sites More sharing options...
crzftx Posted December 23, 2007 Share Posted December 23, 2007 (edited) Im not very good at reading other people's code, just decent at writing my own, so sorry that I don't really understand yours. But my guess is that $BitrateSeleccionado does not point to the value within the form, but the form itself... try GuiCtrlRead($B...)Another [helpful] tip: have the program output 'lame.exe -h -b ' & $BitrateSeleccionado & ' "' & @GUI_DragFile & '"' & ' "' & $savedir & '\' & $nombreSinExtension & $FormatoSeleccionado & '" in a MessageBox to make sure it is putting the correct string into RunWait .. Tell us your results. Edited December 23, 2007 by crzftx Link to comment Share on other sites More sharing options...
AL3X Posted December 23, 2007 Author Share Posted December 23, 2007 (edited) -- Edited July 2, 2015 by AL3X Link to comment Share on other sites More sharing options...
crzftx Posted December 23, 2007 Share Posted December 23, 2007 What have you got so far? Do you have an array of the song titles? If not, do you know how to make one? If you do have the array, do you understand the For loop structure? If so, what exactly are you stuck on? Link to comment Share on other sites More sharing options...
AL3X Posted December 23, 2007 Author Share Posted December 23, 2007 (edited) -- Edited July 2, 2015 by AL3X Link to comment Share on other sites More sharing options...
crzftx Posted December 23, 2007 Share Posted December 23, 2007 How about something like this: #include <GuiListView.au3> While _GuiCtrlListView_GetItemCount($listHandle) $File = _GuiCtrlListView_GetItem($listHandle,0,3) _GuiCtrlListView_DeleteItem($listHandle,0) ;perform the necessary RunWait() on $File (the name of the next file in line) WEnd Link to comment Share on other sites More sharing options...
AL3X Posted December 23, 2007 Author Share Posted December 23, 2007 (edited) -- Edited July 2, 2015 by AL3X Link to comment Share on other sites More sharing options...
AL3X Posted December 24, 2007 Author Share Posted December 24, 2007 (edited) -- Edited July 2, 2015 by AL3X Link to comment Share on other sites More sharing options...
AL3X Posted December 24, 2007 Author Share Posted December 24, 2007 (edited) -- Edited July 2, 2015 by AL3X Link to comment Share on other sites More sharing options...
AL3X Posted December 26, 2007 Author Share Posted December 26, 2007 (edited) -- Edited July 2, 2015 by AL3X 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