Deviation Actions

Br3tt's avatar


a new jscript for WSH PANEL MOD v1.5.6 or better

[Change Log]
 * 2015-01-26 at 23:00 (GMT+1) : 1.0.0 >> Initial release
 * ...
 * 2015-02-20 at 21:20 (GMT+1) : 1.2.8 >> auto-collpase engine fixed, validated with beta testing (thanx to du22y and marc2k3), and bugs fixed when sending tracks from a library panel (brought with v1.2.7) + CRTL+T to toggle columns toolbar + CTRL+I to toogle Information panel (topbar) + type what your search now binded with group by pattern (not only artist by default)
 * 2015-02-26 at 19:15 (GMT+1) : 1.3.0 >> now you can choose default groups status (collapsed/expanded) per group pattern + scroll touch control option added + many bugs fixed especially one that make crash panel on expanding groups in some case + now you can draw part of column text (TF) with different colors, $rgb(r,g,) function support added + misc changes and optimizations :)
 * 2015-02-27 at 17:30 (GMT+1) : 1.3.1 >> touch screen behaviour updated, now the track selection do not change while scrolling the list + font size increased in group headers
 * 2015-03-05 at 07:27 (GMT+1) : 1.3.2 >> drag'n drop enhanced, now when you drag tracks from the system to the current playlist (or to one in the playlist manager panel if it's opened) and you can insert the items where you want + added Crop action in selection contect menu + added 2 properties to set the alpha of selected track background and rectangle of the focused track + fixed a bug in Panel Settings when touch screen control activated + fixed a bug for default mode collapsed/expanded + misc. changes in playlist manager panel + minor bugs fixing
[/Change Log]

 * Groups (collpase or expand, add extra lines, ...)
 * Custom Group By patterns with Playlist Filter feature like in ELPlaylist
 * Custom Panel Colors
 * Pseudo Smooth Scrolling
 * Arrange columns as you want, create custom columns with titleformatting and specific color
 * Playlist Header at Top (can be disabled)
 * Wallpaper as background supported (including a new blur effect)
 * Playlist Manager collapsable panel
 * Built in Settings Panel (still some minor parameter to edit in Properties of the panel)
 * Sort by clicking column header
 * Windows scaling compliant (dpi)
 * Playback statistics Engine (update file tags, now asynchronously on tracks ending)
 * ... and more!

 * foobar2000 v1.1 or better >>
 * WSH panel Mod v1.5.6 or better >>…
 * Windows fonts : WingDings 1, 2 & 3


 * Font guifx v2 transports >>…

 * disable "Safe Mode" option in WSH Panel Mod preferences (menu File>Preferences>Tools>WSH Panel Mod)
 * copy "wsh_br3tt" folder into your foobar2000 Profile folder (it only contains the jsplaylist subfolder)
 * import/paste the main JSPlaylist script into a WSH Panel Mod instance of your foobar2000 layout (DUI or CUI)
 * Important: for any Y major update of my scripts (where Y is 2nd number version => x.Y.z), replace the whole folder "wsh_br3tt\jsplaylist\" each time
   and Clear the WSH panel properties (hold SHIFT key + Right-click > Properties > "Clear" button > "OK" button)

 * Hold SHIFT key + right click to display Configure script and panel Properties entries
 * Use Jscript9 engine (if supported by your system) for better performances (known issue: high %cpu on mouse move with older Windows 8.0 versions, in this case prefer Jscript engine)
 * Change colors and fonts in foobar2000 Preferences > DefaultUI or ColumsUI
 * Some minor settings can be changed in window Properties (right click on a playlist item > Settings...), use it carefully! main settings are now built in the panel with a graphic interface
 * Left click on a column header to sort the playlist on this field
 * Right click on the columns toolbar to edit Columns and Groups layout and features
 * Use Keyboard for searching artist in the playlist (incremental search feature like in ELPlaylist) or to navigate in playlist
 * Right Click on items for contextual menu for the selection
 * TAB key or Middle Click to toggle the Playlist Manager
 * CTRL+T to toggle the columns toolbar
 * CTRL+I to toggle the top Info panel
 * Hold CTRL + Mouse Wheel to scale elements (useful for 'retina' screens)
 * F2 key to rename active playlist in playlist manager panel
 * F5 key to refresh covers
 * Special fields handled in columns TF: %list_index%, %list_total%, %isplaying%
 * Special TF function to set specific color for the text that follows it: $rgb(r,g,b) with r,g,b as decimal values [0;255]
    do not use $rgb(,r,g,b) in a test condition compare but always for the result part (then or else):
    ==> this don't work: $if($rgb(0,0,0)%title%,%title%,,)
    ==> but this does: $if(%title%,$rgb(0,0,0)%title%,,)
 * Playlist Filter Group patterns: Set a group by pattern to a playlist thru Groups settings tab or by right clicking playlist manager item
 * ... etc

feedback is always very welcome, :+fav: too, so i count on you! :)


© 2015 - 2021 Br3tt
Join the community to add your comment. Already a deviant? Log In
I followed the steps and got this error:

Runtime-fout Microsoft JScript:
Ln: 2820, Col: 5

Line 2820 in  the script states:
g_font_playicon = gdi.Font("wingdings 3", Math.floor(zoom(17, g_dpi)), 0);

Anyone knows how to solve this?
Is there a way to remove white border around album art in the playlist?
Hi there; every time I try to install this I get this message in the console:

User Interface initialized in: 0:00.055787
Startup time : 0:00.110138
Error: WSH Panel Mod (JSPlaylist v1.3.2 by Br3tt aka Falstaff >> Parsing file "D:\Program Files\Foobar2000\wsh_br3tt\jsplaylist\js\WSHcommon.js": Failed to load
Error: WSH Panel Mod (JSPlaylist v1.3.2 by Br3tt aka Falstaff >> Parsing file "D:\Program Files\Foobar2000\wsh_br3tt\jsplaylist\js\WSHinputbox.js": Failed to load
Error: WSH Panel Mod (JSPlaylist v1.3.2 by Br3tt aka Falstaff >> Parsing file "D:\Program Files\Foobar2000\wsh_br3tt\jsplaylist\js\WSHtopbar.js": Failed to load
Error: WSH Panel Mod (JSPlaylist v1.3.2 by Br3tt aka Falstaff >> Parsing file "D:\Program Files\Foobar2000\wsh_br3tt\jsplaylist\js\WSHscrollbar.js": Failed to load
Error: WSH Panel Mod (JSPlaylist v1.3.2 by Br3tt aka Falstaff >> Parsing file "D:\Program Files\Foobar2000\wsh_br3tt\jsplaylist\js\WSHheaderbar.js": Failed to load
Error: WSH Panel Mod (JSPlaylist v1.3.2 by Br3tt aka Falstaff >> Parsing file "D:\Program Files\Foobar2000\wsh_br3tt\jsplaylist\js\WSHplaylist.js": Failed to load
Error: WSH Panel Mod (JSPlaylist v1.3.2 by Br3tt aka Falstaff >> Parsing file "D:\Program Files\Foobar2000\wsh_br3tt\jsplaylist\js\WSHplaylistmanager.js": Failed to load
Error: WSH Panel Mod (JSPlaylist v1.3.2 by Br3tt aka Falstaff >> Parsing file "D:\Program Files\Foobar2000\wsh_br3tt\jsplaylist\js\WSHsettings.js": Failed to load
Error: WSH Panel Mod (JSPlaylist v1.3.2 by Br3tt aka Falstaff >> Microsoft JScript runtime error:
'DT_LEFT' is undefined
File: <main>
Ln: 78, Col: 1

Any ideas as to what I'm doing wrong? This happens no matter which of the 3 script engines I use, and I haven't messed with the pseudo transparent or delay load functions. I've also tried a fresh portable install, but I've only taken one semester of Python, so I have no clue what's going on with this script. Please send help.
Br3tt's avatar
maybe folder that contains .js files is not at its right location. Is "D:\Program Files\Foobar2000\wsh_br3tt\jsplaylist\js\" this folder exists ? if not you haven't extract it to the right location.
Jorchking's avatar
I'm too noob installing this, can someone do a video tutorial or a detailed installation guide?
taurhel's avatar
Hi! I'm trying to configure flat playlist.
I want to disable grouping but after adding Cover column the overall look becomes strange. It displays cover for each track individually and not for the album once. Is it possible to combine cover images?
It is a very good playlist script. Thank you!
2tec's avatar
Awesome, thank you!
alibalicou's avatar
It work really fine.
Thanks for this good script.

(One "standard" and missing feature is the ability to reorder tracks by drag'N'drop.)
Br3tt's avatar
"ability to reorder tracks by drag'N'drop."

it does
Haitime's avatar
Two quick questions, if you have a spare moment:

- Is it possible to set a JSPlaylist panel to always follow the Now Playing playlist (aka Selection (playing)), or any other specific playlist? One would make an excellent Now Playing panel, and would replace what I'm currently using.

- Is there a way to configure the find-as-you-type search to find tracks rather than artist names? Since there isn't a regular find function it would be super useful.

Thanks for the superb UI Sparkles of ultimate happiness 
Misdelivered's avatar
Can you please tell me how to assign middle click to 'add to queue'? :) Thanks
Misdelivered's avatar
Welp and please - I have a buttons panel with things like 'find album art'/'item properties' but the buttons don't work with this playlist for some reason. It's like JS doesn't let foobar know which items are currently selected, is there a workaround for this?

// I think this is fixed by changing buttons from active selection to current playlist selection, nvm.
I am so impressed by this script!
Thank you!
After paste the code to WSH Panel my Screen is blank what´s wrong ?

I go to Layout Editing Mode, Replace UI Element, Select WSH Panel, Select Tools and Imported Script.
Br3tt's avatar
maybe wsh_br3tt folder not placed in the right place !? read installation notes again and check it

i have portable Version of Foobar 1.3.9 installed.

At Perferences i disabled Safe_mode at WSH Panel Mod.

I placed the folder wsh_br3tt to Foobar directory and imported the jsplaylist main.txt to WSH Panel Mod.

Are this correct ?

After this it works but i have no color´s or images all White and Text are black.
PhenixMightheart's avatar
Can u plz give me your foobar folder plz i know you cant do that and i already know the answer but plzz 
If anyone wants to change the color of the Rating stars (I find yellow to be very obnoxious :) ) open the WSHplaylist.js file and goto line 252.


this.rating_color = ratingArray[1];

With: (for example)

this.rating_color = RGBA(0,0,255,255);

The last value controls the brightness.
The Title column seems to be joined at the hip to the column to the left of it.  I'd like to get Title in the middle with the numbers further off to the left. Is there a way to do that without sandwiching them between another column?
I guess what I can do is put the state column between the Title and Numbers. Seems to work ok.
Misdelivered's avatar
some nice fixes thanks man
Join the community to add your comment. Already a deviant? Log In