Jump to content

Recommended Posts

Posted

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.

Posted

well, I assume you possess the knowledge of converting one format to another, else this help will be useless

Make 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
Posted (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 by crzftx
Posted

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?

Posted

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

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
  • Recently Browsing   0 members

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