Jump to content

Simple Script For Adding #'s


Recommended Posts

I'm new to autoit, so don't expect anything good...:)

But anywho...

After ripping cd's, I usually find myself annoyed at typing the track number's at the beginning of each file (ie. 01,02,03,...), so I wrote a script that'll do it.

Just a beginners project...:D

dim $i=2, $FolderName, $NumberofFiles, $Start

$Start = MsgBox(1,"AutoOrganizer", "This will add the numbers (01-09,10-infinite) at the beginning a file name. Please have the folder open, and your files in the order you want.")
if $Start = 2 then
    exit
endif

$FolderName=InputBox("AutoOrganizer","Please type in the exact name of the folder")
    if @error = 1 then
  exit
    endif
    
$NumberofFiles=InputBox("AutoOrganizer","Please type in the number files there are")
    if @error = 1 then
  exit
    endif

winactivate ($FolderName)
winwaitactive ($FolderName)
send ("!vl{Space}{Home}{F2}{Home}01-{Enter}")

do
    send ("{Down}{F2}{Home}")
    
    if $i <= 9 then
  send ("0")
  send ($i,1)
  send ("-")
    else
  send ($i,1)
  send ("-")
    endif
    
    send ("{Enter}")
    $i=$i+1
until $i = $NumberofFiles + 1

send ("!vn")

BTW...You have to have the folder open, and the files already in the order you want. :huh2:

Any and every suggestion, comment, and complaint will be appreciated. :lol:

Edited by areola
Link to post
Share on other sites

Thanks. I find it useful, and I'ma try to update as much as I can for felxibility.

Like opening the folder and organizing it yourself is half the job done, so i'd want the program the to do it all. :D

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

    No registered users viewing this page.

×
×
  • Create New...