Sign in to follow this  
Followers 0
guestscripter

Tool to find duplicate songs on ipod?

12 posts in this topic

The problem is that in iTunes the "view duplicate songs" function gets grayed out when you open your ipod, and that all my songs are on my ipod and not in my library.

I wrote the following but it messes us and opens random windows, and is too slow to go through 4000 songs.

$title_a = "title_a"
$title_b = "title_b"
$title_c = "title_c"
$duplicates = 0
$int = 10


MsgBox(0,"Info","Script Initiated")
$n = InputBox("Input Required","Enter Total Number Of Songs")
$win = InputBox("Input Required","Enter Unique Window Title")
$int = InputBox("Input Required","Enter Interval")
Winactivate($win)
  Sleep($int)


Do
Winactivate($win)
  Sleep($int)
Send("{F2}")
Send("^c")
  Sleep($int)
$title_a = ClipGet()

If $title_a = $title_b Then
  Sleep($int)
$title_a = $title_a & " ##"
ClipPut($title_a)
Send("^v")
  Sleep($int)
Send("{ENTER}")
  Sleep($int)
Send("{UP}")
  Sleep($int)
Send("{F2}")
  Sleep($int)
Send("^v")
  Sleep($int)
Send("{ENTER}")
  Sleep($int)
Send("{DOWN}")
  Sleep($int)
Send("{DOWN}")
$duplicates = $duplicates + 1
Else
  Sleep($int)
Send("{ENTER}")
  Sleep($int)
Send("{DOWN}")
EndIf

Winactivate($win)
  Sleep($int)
Send("{F2}")
Send("^c")
  Sleep($int)
$title_b = ClipGet()

If $title_b = $title_a Then
  Sleep($int)
$title_b = $title_b & " ##"
ClipPut($title_b)
Send("^v")
  Sleep($int)
Send("{ENTER}")
  Sleep($int)
Send("{UP}")
  Sleep($int)
Send("{F2}")
  Sleep($int)
Send("^v")
  Sleep($int)
Send("{ENTER}")
  Sleep($int)
Send("{DOWN}")
  Sleep($int)
Send("{DOWN}")
$duplicates = $duplicates + 1
Else
  Sleep($int)
Send("{ENTER}")
  Sleep($int)
Send("{DOWN}")
EndIf


$n = $n - 2
Until $n < 1

MsgBox(0,"Info","Completed! " & $duplicates & " duplicates found")

Please post any ideas, improvements, better versions, or your solutions to this probem. Please!

Thanks

Share this post


Link to post
Share on other sites



Here it is without the sleeps for better viewability

$title_a = "title_a"
$title_b = "title_b"
$title_c = "title_c"
$duplicates = 0
$int = 10


MsgBox(0,"Info","Script Initiated")
$n = InputBox("Input Required","Enter Total Number Of Songs")
$win = InputBox("Input Required","Enter Unique Window Title")
$int = InputBox("Input Required","Enter Interval")
Winactivate($win)
  


Do
Winactivate($win)
  
Send("{F2}")
Send("^c")
  
$title_a = ClipGet()

If $title_a = $title_b Then
  
$title_a = $title_a & " ##"
ClipPut($title_a)
Send("^v")
  
Send("{ENTER}")
  
Send("{UP}")
  
Send("{F2}")
  
Send("^v")
  
Send("{ENTER}")
  
Send("{DOWN}")
  
Send("{DOWN}")
$duplicates = $duplicates + 1
Else
  
Send("{ENTER}")
  
Send("{DOWN}")
EndIf

Winactivate($win)
  
Send("{F2}")
Send("^c")
  
$title_b = ClipGet()

If $title_b = $title_a Then
  
$title_b = $title_b & " ##"
ClipPut($title_b)
Send("^v")
  
Send("{ENTER}")
  
Send("{UP}")
  
Send("{F2}")
  
Send("^v")
  
Send("{ENTER}")
  
Send("{DOWN}")
  
Send("{DOWN}")
$duplicates = $duplicates + 1
Else
  
Send("{ENTER}")
  
Send("{DOWN}")
EndIf


$n = $n - 2
Until $n < 1

MsgBox(0,"Info","Completed! " & $duplicates & " duplicates found")

Share this post


Link to post
Share on other sites

is there a way to do it with out the send commands


[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Share this post


Link to post
Share on other sites

Why not use the com interface that iTunes provides?

whats that?

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

PLay a song in iTunes then run this script

$oiTunes = ObjCreate("iTunes.Application")
ObjEvent($oiTunes, "iTunes_")
$oItunes.Pause()
While 1
    Sleep(1000)
WEnd

Func iTunes_OnPlayerPlayEvent($iTrack)
    MsgBox(0,"Play", "A song has started playing in iTunes!")
    Exit
EndFuncoÝ÷ Ù8^ÉbrJek(§;§zÀÄv+Rjez$îë+zj-y«­¢+Øìôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôô(ì(ìAɽɴ9µè¥QÕ¹ÌIµ½Ñ(ìÍÉ¥ÁÑ¥½¸èè$
½¹Ñɽ±±¥¹¥Qչ̥¸Õѽ%P(ìIÅեɵ¹Ð¡Ì¤è9½¹(ìÕÑ¡½È¡Ì¤è$IéÉ4(ì(ìôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôôô(ì(¥¹±Õ±ÐíU%
½¹ÍѹÑ̹ÔÌÐì()±½°ÀÌØí½¥QÕ¹Ìô=©
ÉÑ ÅÕ½Ðí¥Qչ̹ÁÁ±¥Ñ¥½¸ÅÕ½Ðì¤)=©Ù¹Ð ÀÌØí½¥Qչ̰ÅÕ½Ðí¥QÕ¹Í|ÅÕ½Ðì¤)U%
ÉÑ ÅÕ½Ðí¥QÕ¹ÌIµ½ÑÅÕ½Ðì°ÄàÀ°ÄÔÀ¤(ÀÌØíÁ±äôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½ÐíA±äÅÕ½Ðì°ÄÀ°ÄÀ°àÀ°ÈÔ¤(ÀÌØíÁÕÍôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½ÐíAÕÍÅÕ½Ðì°äÔ°ÄÀ°àÀ°ÈÔ¤(ÀÌØíÁÉØôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½ÐíAÉÙ¥½ÕÌQɬÅÕ½Ðì°ÄÀ°ÐÀ°àÀ°ÈÔ¤(ÀÌØí¹áÐôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½Ðí9áÐQɬÅÕ½Ðì°äÔ°ÐÀ°àÀ°ÈÔ¤)U%
Ñɱ
ÉÑ1° ÅÕ½ÐíY½±ÕµèÅÕ½Ðì°ÄÀ°ÜÀ¤(íÉÑ͵½½Ñ ÁɽÉÍÌÈ)%MÑÉ¥¹%¹MÑÈ¡=MQeA°ÅÕ½Ðí]%8ÌÉ}9PÅÕ½Ðì¤Q¡¸($ÀÌØíÁÉÙÁÁAɽÀô±±
±° ÅÕ½ÐíÕáÑ¡µ¹±°ÅÕ½Ðì°ÅÕ½Ðí¥¹ÐÅÕ½Ðì°ÅÕ½ÐíÑQ¡µÁÁAɽÁÉÑ¥ÌÅÕ½Ðì¤ì°ÅÕ½Ðí¥¹ÐÅÕ½Ðì°À¤(%±±
±° ÅÕ½ÐíÕáÑ¡µ¹±°ÅÕ½Ðì°ÅÕ½Ðí¹½¹ÅÕ½Ðì°ÅÕ½ÐíMÑQ¡µÁÁAɽÁÉÑ¥ÌÅÕ½Ðì°ÅÕ½Ðí¥¹ÐÅÕ½Ðì°À¤)¹%(ÀÌØíY½±AɽÉÍÌôU%
Ñɱ
ÉÑAɽÉÍÌ ÄÀ°äÀ°ÄØÔ°ÈÔ°ÀÌØíA M}M5==Q ¤)%MÑÉ¥¹%¹MÑÈ¡=MQeA°ÅÕ½Ðí]%8ÌÉ}9PÅÕ½Ðì¤Q¡¸(%±±
±° ÅÕ½ÐíÕáÑ¡µ¹±°ÅÕ½Ðì°ÅÕ½Ðí¹½¹ÅÕ½Ðì°ÅÕ½ÐíMÑQ¡µÁÁAɽÁÉÑ¥ÌÅÕ½Ðì°ÅÕ½Ðí¥¹ÐÅÕ½Ðì°ÀÌØíÁÉÙÁÁAɽÁlÁt¤)¹%(ÀÌØíÙ½±
½¹Ñɽ°ôU%
Ñɱ
ÉÑM±¥È ÄÀ°ÄÈÀ°ÄØÔ°ÈÔ¤)U%
ÑɱMÑÑ ÀÌØíÙ½±
½¹Ñɽ°°ÀÌØí½¥Qչ̹M½Õ¹Y½±Õµ¤)U%MÑMÑÑ ¤()±½°ÀÌØíÙ½±ÕµôÀ°ÀÌØí½±Ù½±ÕµôÀ)±½°ÀÌØíÙ½±ÕµÈôÀ°ÀÌØí½±Ù½±ÕµÈôÀ)]¡¥±Ä($ÀÌØíÙ½±ÕµôÀÌØí½¥Qչ̹M½Õ¹Y½±Õµ(%%ÀÌØíÙ½±Õµ±ÐìÐìÀÌØí½±Ù½±ÕµQ¡¸($%U%
ÑɱMÑÑ ÀÌØíY½±AɽÉÍÌ°ÀÌØíÙ½±Õµ¤($$ÀÌØí½±Ù½±ÕµôÀÌØíÙ½±Õµ(%¹%($ÀÌØíÙ½±ÕµÈôU%
ÑɱI ÀÌØíÙ½±
½¹Ñɽ°¤(%%ÀÌØíÙ½±ÕµÈ±ÐìÐìÀÌØí½±Ù½±ÕµÈQ¡¸($%U%
ÑɱMÑÑ ÀÌØíY½±AɽÉÍÌ°ÀÌØíÙ½±ÕµÈ¤($$ÀÌØí½¥Qչ̹M½Õ¹Y½±ÕµôÀÌØíÙ½±ÕµÈ($$ÀÌØí½±Ù½±ÕµÈôÀÌØíÙ½±ÕµÈ(%¹%(%MÝ¥Ñ U%Ñ5Í ¤($%
ÍÀÌØíU%}Y9Q}
1=M($$%á¥Ð($%
ÍÀÌØíÁ±ä($$$ÀÌØí½¥Qչ̹Á±ä($%
ÍÀÌØíÁÕÍ($$$ÀÌØí½¥Qչ̹ÁÕÍ($%
ÍÀÌØíÁÉØ($$$ÀÌØí½¥Qչ̹AÉÙ¥½ÕÍQɬ($%
ÍÀÌØí¹áÐ($$$ÀÌØí½¥Qչ̹9áÑQɬ(%¹MÝ¥Ñ )]¹
Edited by RazerM

My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.

Share this post


Link to post
Share on other sites

in the future, put support threads in the support forum.

thank you.


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

in the future, put support threads in the support forum.

thank you.

it wasnt support he was sharing his wholesome send function goodness

Share this post


Link to post
Share on other sites

it wasnt support he was sharing his wholesome send function goodness

Oh, I misunderstood.

Sorry yaziquex.


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


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
Sign in to follow this  
Followers 0