Jump to content

Title Renamer


 Share

Recommended Posts

after some trying around i found out the program deletes like 50/70% of the complete ID3 tags without setting title or artist. theyre technically blank o.o i tried both scripts so its maybe a bug in the included file 

 

As I said, I've never used ID3 tags, I tested the script with 10 mp3 songs and it worked fine on all of them. You should take a deep look into ID3 UDF functions or open a new post asking for help for this issue with your mp3 files. An advise, if you ask for help on this issue, it should be great if you could provide a mp3 (without Copyright of course) where the problem could be reproduced,  your chances to get help will raise up.

and, if i copy a file called HotKeyQuit.au3 with content

HotKeySet("{END}","Ende")
Func Ende()
   Exit
EndFunc

into the AutoIt3Include folder and i include <HotKeyQuit.au3> will it have a hotkey which quits the script? (i need hotkey to quit a lot)

 

The best way to check whether that will work is to test it. Anyway, yes, it should work ^_^

Link to comment
Share on other sites

i did 2 new scripts which do not work with the buggy ID3 thing

HotKeySet("{END}","Ende")
Func Ende()
   Exit
EndFunc
$count = InputBox("Wiedergabeliste","Anzahl der Titel in der Wiedergabeliste")
Do
WinActivate("iTunes")
MouseClick("",761, 265,1,0)
Send("{CTRLDOWN}ac{CTRLUP}")
WinActivate("F2")
WinWaitActive("F2")
MouseClick("",836, 564,1,0)
Send("{CTRLDOWN}v{CTRLUP}{ENTER}")
WinWaitActive("Title")
Send("{CTRLDOWN}c{CTRLUP}")
WinActivate("iTunes")
MouseClick("",619, 264,1,0)
Send("{CTRLDOWN}av{CTRLUP}")
WinActivate("Title")
Send("{ENTER}")
WinWaitActive("Artist")
Send("{CTRLDOWN}c{CTRLUP}{ENTER}")
WinActivate("iTunes")
MouseClick("",633, 302,1,0)
Send("{CTRLDOWN}av{CTRLUP}") ; The a is irrelevant because the field is empty at any time before the Rename
MouseClick("",713, 630,1,0)
$count = $count -1
Until $count = 0
Send("{ENTER}")
MsgBox(0,"Prozess vollständig","Alle Titel der Wiedergabeliste abgearbeitet :)")
#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.10.2
 Author:         myName

 Script Function:
    Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

#include <File.au3>
#include <Array.au3>
#include <MsgBoxConstants.au3>
#include <ID3_v3.4.au3>

While 1

$sString = InputBox("F2","Hello")

$iPosition = StringInStr($sString, " - ")

   $title = StringTrimLeft($sString, $iPosition + 2)


InputBox("Title","Songtitle is default",$title)

#cs
16bit - FRZR9000.mp3
3pm.0009RZRF - tib61
#ce

$sString2 = StringReverse($sString)
$iPosition2 = StringInStr($sString2, " - ")

   $var2 = StringTrimLeft($sString2, $iPosition2)
$interpret = StringTrimLeft($var2,2)

$interpret = StringReverse($interpret)

InputBox("Artist","Songartist is default",$interpret)

WEnd

they work together perfectly. my only problem is that if there is no interpret so the form is "Title" instead of "Artist - Title" it cuts off 2 letters at the beginning.

$title = StringTrimLeft($sString, $iPosition + 2)

is the problem. id like some 

If $sString has not " - " then $iPosition -2

€: or better : a full skip

Edited by Siryx
Link to comment
Share on other sites

As I said, I've never used ID3 tags, I tested the script with 10 mp3 songs and it worked fine on all of them. You should take a deep look into ID3 UDF functions or open a new post asking for help for this issue with your mp3 files. An advise, if you ask for help on this issue, it should be great if you could provide a mp3 (without Copyright of course) where the problem could be reproduced,  your chances to get help will raise up.

 

The best way to check whether that will work is to test it. Anyway, yes, it should work ^_^

ill do next time :D im so proud of myself at least i got it working in a not perfect way but i did it and didnt want to destroy everything with a thing i dont know :D

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...