• 0

[VB] Help a newbie


Question

I'm using iTunes for SysStats and I am trying to tweak the display of the song infomation playing. Right now when you hover over the iTunes icon in the dock, the title of the song playing shows up. However, I want it to display as follows:

Artist - Track Name

I've gone into the iTunes VBScript file, looked around, and found the area that needs tweaking. Unfortunately, I know absolutely nothing about VB, so I was hoping someone here could help me. Here is the part of the script that needs tweaking.

	 location = GetCurrentTrackLocation(oiTunes)
 	 If location <> "" and location <> oldlocation Then
    SysStatsModel.Label.Format = oiTunes.CurrentTrack.Name //THIS IS THE LINE TO TWEAK
    oldlocation = location

Does anybody know how I'd be able to have the display I want show up? I should mention I was able to replace "Name" with "Artist" and I did get the artist info to show up. I just don't know how to get both.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

use something like

dim track as string
track =oitunes.currenttrack.name 
name = split(track, "-") 'the - represents the bit between the two, sorry im not a itunes user :S
name(0) = artist
name(1) = trackname

hope thats some help :D

Link to comment
Share on other sites

  • 0

i duno something like

in globals have

dim name as varient

and for code say

private sub command1_click()
msgbox name(0) + " is the artist's name"
end sub
private sub command2_click()
msgbox name(1) + " is the track name"

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.