Hey,
Great script.
I'm trying to use bits of it for an script I'm working on, iTunes auto Lyric finder. I.e fill in the lyrics from all of your tracks in your libary by using wikilyrics.
I need to be able to retrieve the song name and artist from the selected song (as oppose to the current playing song),, do you know how I can do that?
I got this far:
The below would retrieve the current song:
Code:
;- First we need to initilize com+ and add iTunes as the object.
COM_Init()
iTunesApp := COM_CreateObject("iTunes.Application") ;Create the object
If (iTunesApp = 0)
{
MsgBox, 262160, dude `, please open up iTunes. Cheers.
GoSub, PleaseExitApp
}
iTunesConn := COM_ConnectObject(iTunesApp, "iTunes_")
getTrackName := COM_Invoke(COM_Invoke(iTunesApp, "Track"), "Name")
getTrackArtist := COM_Invoke(COM_Invoke(iTunesApp, "Track"), "Artist")
MsgBox, %getTrackName% %getTrackArtist%
;+ sean's com+ library: http://www.autohotkey.com/forum/topic22923.html
now,,, how do I get the selected field...
Also, would you happen to know if it's possible to fill in the Lyrics field without making the script do clicks?
thank you very much.
Leo.