didn't work for me.
I got a shell error on line 269.

Steegy wrote:Did you use the installer?
-If not, you'll have to use it to install everything needed for the script.
-If yes...
Steegy wrote:Did you use the installer?
Are vbs files still associated to Windows Scripting Host?
-If not, you'll have to reassociate them manually, or reinstall Windows Scripting Engine 5.1
-If yes...
Steegy wrote:Did you use the installer?
Have you deleted/moved any files from the script?
-If yes, put them back, or reinstall the script
-If not, then call support
ADD Set custom file icons for different MM music file types
ADD Auto-randomize Now Playing on startup
IMP Removed small piece of double code
ADD Tree nodes "search", "net radio" and "web"
XTODO: With combination of "Randomize playlist..." and "Fast NowPlaying loading", allow resuming the correct previous track (is now just randomized)
XTODO: Add extra code commentsSub SDB_OnShutDown
SetINIString "PlaybackPosition", SDB.Player.PlayBackTime
SetINIString "PlaybackState", SDB.Player.IsPlaying & "-" & SDB.Player.IsPaused
If GetINIBool("UseFastNPLoading", False) Then
If SDB.PlaylistByTitle("NPSaved").Id <> 0 Then 'if old NPSaved exists then delete it'
SDB.PlaylistByTitle("NPSaved").Delete
End If
SetINIString "NPCurrentSong", SDB.Player.CurrentSongIndex
Dim RootPlaylist : Set RootPlaylist = SDB.PlaylistByTitle("")
If SDB.PlaylistByTitle("NPSaved").Id <> 0 Then SDB.PlaylistByTitle("NPSaved").Delete
Dim NPSaved : Set NPSaved = RootPlaylist.CreateChildPlaylist("NPSaved")
NPSaved.Clear
Dim CSL : Set CSL = SDB.Player.CurrentSongList
Dim i
For i = 0 To CSL.Count - 1
NPSaved.AddTrack(CSL.Item(i))
Next
SDB.Player.PlaylistClear
End If
If GetINIBool("UseFastNPLoading", False) Then
If SDB.PlaylistByTitle("NPSaved").Id <> 0 Then 'check first to see that NPSaved exists'
SDB.Player.PlaylistClear ' To make sure that the playlist is really empty
SDB.Player.PlaylistAddTracks(SDB.PlaylistByTitle("NPSaved").Tracks)
SDB.Player.CurrentSongIndex = CLng(GetINIString("NPCurrentSong", "0"))
SDB.ProcessMessages
End If
' First check that the NPSaved node really exists. (If it doesn't exist, the root node would be returned, and deleted!)
' commented this out, to leave the NPSaved playlist intact then delete when MM shuts down properly'
' If SDB.PlaylistByTitle("NPSaved").Id <> 0 Then SDB.PlaylistByTitle("NPSaved").Delete
Else
' Auto-Play/Resume/Shuffle/Repeat/Randomize/LoadPlaylist ---------
If GetINIBool("LoadPlaylist", False) Then
Dim PlaylistName : PlaylistName = GetINIString("Playlist", "")
If PlaylistName <> "" Then
If DoesPlaylistExist(PlaylistName) Then
SDB.Player.PlaylistClear
SDB.Player.PlaylistAddTracks(SDB.PlaylistByTitle(PlaylistName).Tracks)
End If
End If
End If
End If

Steegy wrote:Well, you can now assign custom icons for most MM music file types (as requested many times). I'd say: try it once and you'll see.
For the script to do its job, MM mustn't re-associate these file types itself when it starts (I probably forgot to mention/test this in the script).

NodeRef(NodeName).Visible = GetTreeVisibility(NodeName) If CanNodeVisibility(NodeName) Then
NodeRef(NodeName).Visible = GetTreeVisibility(NodeName)
End IfUsers browsing this forum: Exabot [Bot] and 22 guests