Small jscript code showing currently active playlist (if that is what you are looking for). Works with foo_jscript_panel from marc.
// ==PREPROCESSOR==
// @name "Get some playlist info (15.June.2012)"
// @author "ExtremeHunter"
// ==/PREPROCESSOR==
function RGB(r, g, b) {
return (0xff000000 | (r << 16) | (g << 8) | (b));
}
function getPlaylistInfo() {
activePlaylist = plman.ActivePlaylist;
getPlaylistItems = plman.GetPlaylistItems(activePlaylist);
playlistItemCount = plman.PlaylistItemCount(activePlaylist);
seconds = 0;
sizeInBytes = 0;
timeFormat = function (s) {
var weeks = Math.floor(s / 604800),
days = Math.floor(s % 604800 / 86400),
hours = Math.floor((s % 86400) / 3600),
minutes = Math.floor(((s % 86400) % 3600) / 60),
seconds = (((s % 86400) % 3600) % 60).toFixed(0),
weeks = weeks > 0 ? weeks + "wk " : "",
days = days > 0 ? days + "d " : "",
hours = hours > 0 ? hours + ":" : "",
minutes = (minutes < 10 ? "0" + minutes : minutes) + ":",
seconds = seconds < 10 ? "0" + seconds : seconds;
return weeks + days + hours + minutes + seconds;
}
var tempFileName;
for (var i = 0, l = playlistItemCount; i != l; i++) {
seconds += parseFloat(fb.TitleFormat("%length_seconds_fp%").EvalWithMetadb(getPlaylistItems.Item(i)));
fileName = fb.TitleFormat("$filename(%_path%).$ext(%_path%)").EvalWithMetadb(getPlaylistItems.Item(i));
if (fileName != tempFileName) {
sizeInBytes += Math.floor(fb.TitleFormat("%filesize%").EvalWithMetadb(getPlaylistItems.Item(i)));
}
tempFileName = fileName;
}
var sizeInMB = sizeInBytes / 1048576;
var sizeInGB = sizeInBytes / 1073741824;
if (sizeInMB < 1024) size = Math.floor(sizeInMB) + " MB";
else size = Math.floor(100 * sizeInGB) / 100 + " GB";
window.Repaint();
};
getPlaylistInfo();
function on_paint(gr) {
gr.GdiDrawText("Playlist: " + plman.GetPlaylistName(activePlaylist) + "\n" + playlistItemCount + " Items" + (sizeInBytes ? "\nTotal time: " + timeFormat(seconds) + "\nSize: " + size : ""), gdi.font("Segoe Ui", 24, 0), RGB(0, 0, 0), 20, 20, 1000, 500, 0x00000004);
}
function on_playlist_switch() {
getPlaylistInfo();
}
function on_playlist_items_added(playlist) {
getPlaylistInfo();
}
function on_playlist_items_removed(playlist, new_count) {
getPlaylistInfo();
}