HOME | DD

Br3tt — JSPlaylist

#foobar2000 #jscript #panel #playlist #viewer #wsh #falstaff #br3tt
Published: 2015-01-26 22:00:22 +0000 UTC; Views: 114693; Favourites: 120; Downloads: 10975
Redirect to original
Description 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]

[Features]
 * 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!
[/Features]

[Requirements]
 * foobar2000 v1.1 or better >> www.foobar2000.org
 * WSH panel Mod v1.5.6 or better >> code.google.com/p/foo-wsh-pane…
 * Windows fonts : WingDings 1, 2 & 3
[/Requirements]

[Options]

 * Font guifx v2 transports >> blog.guifx.com/2009/04/02/guif…
[/Options]

[Installation]
 * 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)
[/Installation]

[Tips]
 * 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
[/Tips]


feedback is always very welcome, too, so i count on you!

Cheers!

Br3tt
Related content
Comments: 407

Br3tt In reply to ??? [2015-02-12 18:39:50 +0000 UTC]

i'm not sure i deserve such praises, but thank you x 1000

👍: 0 ⏩: 0

revo1973 In reply to ??? [2015-02-11 14:56:34 +0000 UTC]

I tried JSPlaylist in my current foobar2000 config which has a lot of components, and JSPlaylist was very unresponsive.
I copied my fb2k and through elimination I found out that JSPlaylist and foo_popup_panels don't work well together.

cheers r3v0

Edit:
Using a WSH_Panel_Mod in one or more foo_popup_panels creates a problem.

👍: 0 ⏩: 1

Br3tt In reply to revo1973 [2015-02-11 19:45:26 +0000 UTC]

just tested this foo_popup_panels in v0.1.4 and i don't encounter any problem at all (main panel = 1 JSPlaylist panel + a Popup panel with JSPlaylist too). Thanks to you to explain with more detail what's wrong. Regards.

👍: 0 ⏩: 1

revo1973 In reply to Br3tt [2015-02-12 07:12:58 +0000 UTC]

And when you put another Wsh panel into your config? I'm gonna try it with a clean fb2k, and see what happens. Maybe something in the other wsh panel causes a problem.

👍: 0 ⏩: 1

Br3tt In reply to revo1973 [2015-02-12 07:31:48 +0000 UTC]

done, all is working flawlessly : i.imgur.com/FHmxlyT.jpg
i'm under DefaultUI with foo_popup_panels 0.1.4, maybe a problem on ColumnsUI and have you the same version of foo_pop_up. Btw, the problem is not due to my script.

👍: 0 ⏩: 1

revo1973 In reply to Br3tt [2015-02-12 07:55:12 +0000 UTC]

Looks good indeed. I know it's not your script that's causing the problems. 

edit:
Did you try a different WSH config(script) in one of the other panels btw?
When I use JSPlaylist in fb2k and add one of my one WSH scripted panels, JSPlaylist gets unresponsive. 
Maybe that there is something in my scripts that causes the problem.

👍: 0 ⏩: 1

Br3tt In reply to revo1973 [2015-02-12 18:34:57 +0000 UTC]

share you script and i could give it a try

👍: 0 ⏩: 1

revo1973 In reply to Br3tt [2015-02-14 12:28:57 +0000 UTC]

No need to. I just used a clean fb2k with only Columns, popup_panels and WSH panel mod.
And used JSPlaylist in normal and popup panel and have the exact same issues.
I used the same version of popup_panels. What version of Columns do you use?

Edit:

It seems that when I have the popup panel closed and than open it, the problem occurs.
When I let it open and restart, than everything works fine.

👍: 0 ⏩: 1

Br3tt In reply to revo1973 [2015-02-14 13:23:19 +0000 UTC]

0.3.8.8

tested Hide all then show all pop-up, no change, all is fine, what is exactly the issue ?

👍: 0 ⏩: 1

revo1973 In reply to Br3tt [2015-02-14 14:24:18 +0000 UTC]

The loading of the cover art doesn't work then. The expanding of the playlist manager doesn't work also.

BTW I use the same column version.

👍: 0 ⏩: 1

Br3tt In reply to revo1973 [2015-02-14 14:30:22 +0000 UTC]

problem with the timers used in WSH Panel Mod. Do you have another WSH Panel than JSPlaylist running ? because the symptoms are those encountered when a WSH Panel doesn't handle correctly the timers (never kill them so never free the timer stack)

*waits*

👍: 0 ⏩: 1

revo1973 In reply to Br3tt [2015-02-14 17:44:18 +0000 UTC]

I'll check that if I have a little bit of spare time.

Edit: I got it thanks to you
Seems that I had an script in which i used an older timer method. Updated the script and voila!

👍: 0 ⏩: 0

revo1973 In reply to ??? [2015-02-10 15:43:25 +0000 UTC]

Hi Br3tt, 

is it possible to use colors based on titleformatting in the columns (not the headers)?

greets r3v0

👍: 0 ⏩: 1

Br3tt In reply to revo1973 [2015-02-10 17:47:54 +0000 UTC]

no, not possible

👍: 0 ⏩: 1

revo1973 In reply to Br3tt [2015-02-10 18:51:54 +0000 UTC]

Ok, thanks for the info.
BTW, is there anyway to format at all, like in columns?

👍: 0 ⏩: 1

Br3tt In reply to revo1973 [2015-02-10 20:25:09 +0000 UTC]

not yet, i've planned to add a color picker to set a custom text color for each columns in settings, but not based on TF, just the same color for the whole column.

👍: 0 ⏩: 1

revo1973 In reply to Br3tt [2015-02-10 21:04:15 +0000 UTC]

Ah I see. Well I need some text to be highlighted, doesn't matter how, but it needs to stand out.
Maybe I'll dive in the code to see if there is something I can do to fit my needs.

Before I forget it, I'd like to say that you have made a nice piece of practicle art

👍: 0 ⏩: 1

Br3tt In reply to revo1973 [2015-02-10 21:11:32 +0000 UTC]

thank you

👍: 0 ⏩: 0

tarkus721 In reply to ??? [2015-02-10 00:39:03 +0000 UTC]

I found a possible bug using the custom color sliders. Moving the last (or just the one if only adjusting one) slider with the arrow keys, the value does not "stick" after switching back to the playlist, whereas using the mouse it's OK. In other words if I set a slider to a value of 180 using the arrow keys, then after switching back the value will be some other value such as ~173. This is on Windows 7.

👍: 0 ⏩: 1

Br3tt In reply to tarkus721 [2015-02-10 07:25:54 +0000 UTC]

yep, it's a bug, i'll fix it, thnx

👍: 0 ⏩: 0

tarkus721 In reply to ??? [2015-02-09 17:56:34 +0000 UTC]

Looking good running foobar under wine on a Linux machine after commenting out "doc: new ActiveXObject("htmlfile")," in WSHinputbox.js and disabling "smooth scrolling". I haven't tested it much on Windoh's 7 yet...
Keep up the great work on this.   

👍: 0 ⏩: 1

Br3tt In reply to tarkus721 [2015-02-09 18:09:08 +0000 UTC]

good to know, thanks.

👍: 0 ⏩: 0

deviantart3370 In reply to ??? [2015-02-09 03:25:52 +0000 UTC]

I really like this great playlist. Thank you very much for your hard work.

I'm now trying to sort the albums in my playlist according to the following order.
Album Artist (if there is..)  - Artist - Date - Album - Discnumber

I tried to change the sort order under "Panel Settings - Groups", but no success.
Please, give me some hint for this purpose.

👍: 0 ⏩: 1

Br3tt In reply to deviantart3370 [2015-02-09 07:36:46 +0000 UTC]

??? what you want is the sort of teh default group by pattern, so all you need is already there

to apply a defined group by pattern, you have to click it in the context menu from the main playlist screen, just right click the columns headers > Groups > Group by/sort > "Album artist|Album|Disc"

and its done

TF = %album artist% | $if(%album%,%date%,'9999') | %album% | %discnumber% | %tracknumber% | %title%

👍: 0 ⏩: 0

phibeRCrack In reply to ??? [2015-02-08 09:59:40 +0000 UTC]

now, its perfect!  

the only thing i modified is the bracket: [$if2(%play_counter%,$if2(%play_count%x,0))]
so, the playcount is only displayed when it was used.



thx
phiber

👍: 0 ⏩: 1

Br3tt In reply to phibeRCrack [2015-02-08 12:00:44 +0000 UTC]

 

👍: 0 ⏩: 0

marc2k3 In reply to ??? [2015-02-06 12:40:39 +0000 UTC]

i've made a last.fm mod of this script if anybody is interested. this lets you love/unlove tracks directly from the playlist. you must already be using my full last.fm playcount script.

marc2003.x10host.com/lastfm-pl…

full details here: www.hydrogenaud.io/forums/inde…

please don't spam Br3tt's page with talk about it and don't ask him for help!

👍: 0 ⏩: 0

Punkpkin In reply to ??? [2015-02-06 06:15:01 +0000 UTC]

I really like it and might switch from ELPlaylist to this eventually but the lack of customization without having to mess with the code is making it difficult for me. For example, I want to get rid of the borders on the album cover, make it bigger, remove the "X tracks, X Minutes, X seconds" line, etc. It also doesn't seem like there's a distinction between the font used for the header and the tracklist (and I need the header one to be bigger, but can't because of this)...

I see a lot of hope for future releases, keep up the good work man.

👍: 0 ⏩: 1

Br3tt In reply to Punkpkin [2015-02-06 07:25:08 +0000 UTC]

no matter, it's a base and it can't please everybody, but as it's a script, anyone who is interested of making a full custom playlist script now can, the engine is here, but some jscript and envy are required of course. Regards.

👍: 0 ⏩: 1

Punkpkin In reply to Br3tt [2015-02-06 07:44:48 +0000 UTC]

Sure man that's what I like the most about this, it's a script and that makes it timeless compared to elplaylist which I'm sure eventually I'll ditch because it's just not gonna be developed anymore. Hopefully I'll learn jscript sometime this year and try to do these edits myself. Thanks for making it!

👍: 0 ⏩: 0

Br3tt In reply to ??? [2015-02-05 19:53:14 +0000 UTC]

v1.1.1 released
custom color sliders: focus handled with LEFT & RIGHT arrow keys to adjust RGB values with more accuracy + Columns titleformat: 3 special TF fields now supported: %list_index%, %list_total% & %isplaying% + Panel version is now displayed in Panel Settings + bugs fixing...

👍: 0 ⏩: 0

xScaryKidx In reply to ??? [2015-02-05 19:22:32 +0000 UTC]

Br3tt, if I would like to add a button for "skip", would that be possible on my own? (Would it be complicated?) And what character have you previously been using for the skip button (like in Tech)?

👍: 0 ⏩: 1

Br3tt In reply to xScaryKidx [2015-02-05 19:31:14 +0000 UTC]

you mean a "column  button" like the mood column ?
for now, custom new columns can't mimics the mood column, but on my todo list, it's planned, but it's not on the top of this list... when available ? depends of my free time, could be this week-end or in 2 weeks, i can't tell.

👍: 0 ⏩: 1

xScaryKidx In reply to Br3tt [2015-02-05 21:31:19 +0000 UTC]

Ah, okay. Take your time, just thought it would be nice to have

👍: 0 ⏩: 0

samithaj In reply to ??? [2015-02-05 14:13:45 +0000 UTC]

New update is Great br3tt !!! many thanks for your effort.
Now here's just a suggestion if you can add it
See image
i.imgur.com/TLTxtn9.png
A menu in front of song title, like this one in iTunes so we can add our own options like (quick search same artist/album,slimier tracks etc..)

👍: 0 ⏩: 1

xScaryKidx In reply to samithaj [2015-02-05 19:21:21 +0000 UTC]

Why not just install foo_quicksearch and then right click on the track and use the option for searching for same artist or whatever you're after?

👍: 0 ⏩: 1

samithaj In reply to xScaryKidx [2015-02-06 08:50:08 +0000 UTC]

I already have that, but it would be convenient if we had short menu for most used operations plus it will be customizable for relevant themes since context menu cant be customized as you want to.
I agree that it is not much as rewarding the effort  

👍: 0 ⏩: 0

phibeRCrack In reply to ??? [2015-02-05 10:53:04 +0000 UTC]

hi brett,

i tried to copy your statement from bitrate to the second line.
but in the second line vbr-streams are not displayed as in the first line.

do i make a mistake with the titleformating (as mentioned, i use your statment which works perfectly in the 1st line)


and.. very good work, thx a lot for sharing!!

thx
phiber

👍: 0 ⏩: 1

Br3tt In reply to phibeRCrack [2015-02-05 16:00:08 +0000 UTC]

ok, you point an issue or i should say a lack
will be fixed in next version (1.1.1) : it will handle a special TF field %isplaying% that is currently not supported in 1.1.0 version.

thanx for reporting

👍: 0 ⏩: 1

phibeRCrack In reply to Br3tt [2015-02-06 06:25:52 +0000 UTC]

thx very much for the update!!

bitrate(calculation)display:
it works now for vbr but not for flac anymore, isn't it?

👍: 0 ⏩: 2

phibeRCrack In reply to phibeRCrack [2015-02-06 07:23:51 +0000 UTC]

i handled it in this way:
$if(%isplaying%,%bitrate%'K' %codec%[|%codec_profile%],$if($stricmp($left(%codec_profile%,3),'VBR'),%bitrate%'K' %codec%[|%codec_profile%],%bitrate%'K' %codec%[|%codec_profile%]))

👍: 0 ⏩: 0

Br3tt In reply to phibeRCrack [2015-02-06 07:23:35 +0000 UTC]

i'll check that, i've change a little bit the TF field, maybe too much

👍: 0 ⏩: 0

xScaryKidx In reply to ??? [2015-02-05 08:18:20 +0000 UTC]

When the group headers are two rows in height, is the first row supposed to be in bold font while the second one is "normal"? It's even like this when it's three rows. Like this: sta.sh/02ckvn51whr3

👍: 0 ⏩: 1

Br3tt In reply to xScaryKidx [2015-02-05 09:20:06 +0000 UTC]

yes it is.

👍: 0 ⏩: 0

Master-Kosa In reply to ??? [2015-02-05 00:07:39 +0000 UTC]

Great update! Custom color could use a text field to write the color values - it's very hard work to get the values right on such small sliders (like now I'm unable to insert 229.228.226 - the last number jumps between 225 and 227, like 226 did not exist).
Anyway thanks.

👍: 0 ⏩: 2

marc2k3 In reply to Master-Kosa [2015-02-05 08:37:37 +0000 UTC]

if you hold shift while right clicking the column headers or scrollbar, you can access the properties dialog for WSH panel mod and that will let you enter the values in text.

👍: 0 ⏩: 1

Master-Kosa In reply to marc2k3 [2015-02-05 11:47:00 +0000 UTC]

Thanks for the tip.

👍: 0 ⏩: 0

Br3tt In reply to Master-Kosa [2015-02-05 07:26:16 +0000 UTC]

it's because the bars are 200px wide only to match the miniumu window size as well, and as there are 255 values, there are some gapes in the range!
i don't think a such accuracy is vital.

👍: 0 ⏩: 1

Master-Kosa In reply to Br3tt [2015-02-05 11:46:11 +0000 UTC]

So that's why, thx for clarifying, I'm just too sticker for details like this...

👍: 0 ⏩: 1

Br3tt In reply to Master-Kosa [2015-02-05 12:52:07 +0000 UTC]

Slider cursor focus added in next version to allow an accurate setting of the color channel value with left and right arrow keys

👍: 0 ⏩: 1


<= Prev | | Next =>