Sign in to follow this  
Followers 0
fred666777

Itunes read song

4 posts in this topic

i looking to find what song is currently playing on itunes. i have no idea where to start.

i tried using the autoit window info thing that came w/ autoit and i dont know what to do with what it give me.

Posted Image

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

i got it after a while of help file

$text = ControlGetText("[CLASS:iTunes]", "", "Static23")
MsgBox(0, "Text read was:", $text)

but how would i do something like this

$text = ControlGetText("[CLASS:iTunes]", "", "Static23")
If $text = "asdf" then Run("cmd.exe")
Edited by fred666777

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Your best bet would be to use COM.

$iTunes=ObjCreate("iTunes.Application")
$Song=$iTunes.CurrentTrack.Artist & " - " & $iTunes.CurrentTrack.Name
MsgBox(0,"",$Song)

You should check out the iTunes COM SDK. The possibilities are limitless. I have already built a lyrics app and a hotkey tool using iTunes COM interface.

Edited by P5ych0Gigabyte

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

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