I just wanted to see if anyone would help me with this. I'm trying to get the name of the current playing song but am having much difficulty. Can anyone help me figure this out?
Printable View
I just wanted to see if anyone would help me with this. I'm trying to get the name of the current playing song but am having much difficulty. Can anyone help me figure this out?
Name of what current tune?
Woka
you know itunes? the program developed by apple?
the song that is currently playing. If you dont have the music software it is a free download at apple.com
any solution on this?
I don't have iTunes. :(
The most I can tell you is open Spy++ and look at the iTunes classnames and see if you see a song you're listening to in quotation marks. If you DO then use FindWindowEx and SendMessage to get the window's text.
-Sir Loin
download the itunes com sdk, which will provide you with a help file for this type of stuff.
Code:Dim oTunes As iTunesLib.iTunesApp
Dim oTrack As iTunesLib.IITTrack
Set oTunes = New iTunesLib.iTunesApp
Set oTrack = oTunes.CurrentTrack
MsgBox oTrack.Name
Set oTrack = Nothing
Set oTunes = Nothing
http://developer.apple.com/sdk/itunescomsdk.html
i also download a plugin that puts the current playing song in a text file
and then opened that file in my program but ill look at the sdk
BUMP
Anyone figured out how to get the track title AND artist? The above example only outputs the tracktitle without the artist...
i use the plugin called amip
Thanks man, but I figured it out. I took the time to REALLY read the SDK, turns out this is quite easy:
VB Code:
Private Sub Form_Load() Dim iTunesApp As New iTunesApp MsgBox (iTunesApp.CurrentTrack.Artist & " - " & iTunesApp.CurrentTrack.Name) set iTunesApp = nothing End Sub
edit, forgot a "= nothing"!
i am trying to use this in vb but i cant figure out how to reference the sdk or anything a little help plz
Project---> references
Then select it from the list.
woka
ty i relized that after the post and couldnt delete it fast enough ty any ways