Since this is (one of) my first post I want first of all to say that MediaMonkey is a great piece of software. And that it can count on my support.
Secondly I want to say that my English is not as good as it should be. I'm still learning. If I make any grammatical mistake feel free to correct me.
I'm quite new to MediaMonkey and especially the scripting. I have no experience on vbs. (I do have with other languages though.)
I'm trying to make a (windows) screensaver that displays some information about the song that currently get played.
I'm gonna write the screensaver in C# (that will be no problem). I want to import the song info with a .txt file.
I found Click and Click very usefull.
I can get all the song info I want in the .txt except the album art path.
Here is an image that should display the whole idea.
So the question is does anyone got an idea how to get the AlbumArt path or get embedded AlbumArt extracted.
I'm looking forward too any solution or ideas. Sharing your vision can also be quite usefull. So feel free to reply any ontopic comments.
Until this point I got this:
Code: Select all
Option Explicit
Dim oFSO
Set oFSO = CreateObject("Scripting.FileSystemObject")
Dim sSignatureFileName
sSignatureFileName = "C:\Users\Wouter\Desktop\NowPlayingSignature.txt"
Sub OnStartUp
Script.RegisterEvent SDB, "OnPlay", "WriteSignatureFile"
Script.RegisterEvent SDB, "OnStop", "DeleteSignatureFile"
Script.RegisterEvent SDB, "OnShutDown", "DeleteSignatureFile"
End Sub
Sub WriteSignatureFile
On Error Resume Next
Dim oSignatureFile, oTrack, sAlbumArtist
Set oSignatureFile = oFSO.CreateTextFile(sSignatureFileName, True)
Set oTrack = SDB.Player.CurrentSong
oSignatureFile.Write "|" & oTrack.ArtistName
oSignatureFile.Write "|" & oTrack.Title
oSignatureFile.Write "|" & oTrack.AlbumName
oSignatureFile.Write "|" & oTrack.Path
oSignatureFile.Write "|" & oTrack.PreviewPath
oSignatureFile.Close()
End Sub
Sub DeleteSignatureFile
On Error Resume Next
oFSO.DeleteFile(sSignatureFileName)
End Sub
HELOX