guestscripter Posted October 1, 2006 Posted October 1, 2006 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. expandcollapse popup$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 ImageSearch15.au3 featuring _ImageSearchStartup() and _ImageSearchShutdown()
guestscripter Posted October 1, 2006 Author Posted October 1, 2006 Here it is without the sleeps for better viewability expandcollapse popup$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") ImageSearch15.au3 featuring _ImageSearchStartup() and _ImageSearchShutdown()
ConsultingJoe Posted October 1, 2006 Posted October 1, 2006 is there a way to do it with out the send commands Check out ConsultingJoe.com
FuryCell Posted October 1, 2006 Posted October 1, 2006 Why not use the com interface that iTunes provides? HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
ConsultingJoe Posted October 1, 2006 Posted October 1, 2006 Why not use the com interface that iTunes provides?whats that? Check out ConsultingJoe.com
guestscripter Posted October 1, 2006 Author Posted October 1, 2006 Why not use the com interface that iTunes provides?Yes yes please do somebody tell me what that is?I feel like I'm getting somewhere on this afterall... ImageSearch15.au3 featuring _ImageSearchStartup() and _ImageSearchShutdown()
RazerM Posted October 1, 2006 Posted October 1, 2006 (edited) PLay a song in iTunes then run this script expandcollapse popup$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 October 1, 2006 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.
FuryCell Posted October 1, 2006 Posted October 1, 2006 (edited) SDKEdit:Sorry I didn't post the link last night I was posting from my PSP. Edited October 1, 2006 by SolidSnake HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
theguy0000 Posted October 1, 2006 Posted October 1, 2006 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
Thatsgreat2345 Posted October 1, 2006 Posted October 1, 2006 in the future, put support threads in the support forum.thank you.it wasnt support he was sharing his wholesome send function goodness
theguy0000 Posted October 1, 2006 Posted October 1, 2006 it wasnt support he was sharing his wholesome send function goodnessOh, 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
guestscripter Posted October 1, 2006 Author Posted October 1, 2006 Well thanks a lot for viewing my very correctly threaded script... and the wincy bit of much appreciated help! ImageSearch15.au3 featuring _ImageSearchStartup() and _ImageSearchShutdown()
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