> marc2003: "it was only code to make the start/stop button work on the image."

So, leaving your lines enabled AND including my lines is the right approach for my case, yes?

*EDIT* disregard that question . . . the answer is obviously a choice: "mine or yours" . But I must say, enabling/disabling your lines had no effect on whether the start/stop buttons work on the image ...unless I am misunderstanding your description of this.

Could you pass me a few lines to add for the context menu item please.

only one bug found so far. when you click an item that isn't selected, moving your mouse up/down should select tracks above/below. but your script starts moving it straight away. other playlists only do that when the item you've clicked on is already selected.

QUOTE (derty2)

But I must say, enabling/disabling your lines had no effect on whether the start/stop buttons work on the image ...unless I am misunderstanding your description of this.

if playback is stopped, it plays.if playback is um... playing, it pauses.if playback is paused, it plays.

the image stops/starts spinning accordingly.

and of course you can have the panel do different things on mouse clicks. it not a case of either/or. that would be stupid. you just have to track where the mouse is clicked which is what i do to detect it's over the button.

my script updates every 150ms which makes the seekbar movement look smooth(-ish). you actually want it to update just once a second? that looks like crap to me. secondly, you've already edited the timer to 1000ms (1 second) which is what you want so i have no idea why you posted in the first placelastly, by renaming that function so it doesn't run, the seekbar won't ever update during playback. :/

also, that is based on a very old script using obsolete functions. you'll see this message in your foobar2000 console...

CODE

WSH Panel Mod: Warning: Obsolete: window.CreateTimerInterval() is now obsolete, please use window.SetInterval() in new script.

my script updates every 150ms which makes the seekbar movement look smooth(-ish). you actually want it to update just once a second? that looks like crap to me. secondly, you've already edited the timer to 1000ms (1 second) which is what you want so i have no idea why you posted in the first placelastly, by renaming that function so it doesn't run, the seekbar won't ever update during playback. :/

also, that is based on a very old script using obsolete functions. you'll see this message in your foobar2000 console...

CODE

WSH Panel Mod: Warning: Obsolete: window.CreateTimerInterval() is now obsolete, please use window.SetInterval() in new script.

-I did use SetInterval() subsequently which didn't change anything.-The function needs to be renamed everywhere it appears, of course.-Real-time updating maybe appears ugly only on old PCs(mine has an AthlonXP)

@falstaff, first of all, that is some seriously impressive stuff making customisable/drag-able columns. i'll definitely be using this as it's so easy to customise.

a few things:

drag/drop doesn't appear to work. tried from album list/esplaylist.some useless (to me) stuff is written to the console eg init groups delay = 1 /handleList count=37using ctrl+click doesn't de-select group headers. i think it should.could the title headers align to match the contents? (such as time being right aligned)could you move the edit column option so it's not under the columns submenu. <<i understand if you don't want to do this one as it's your choice.

I wish somebody would script the WSH equivalent of the CUI Library Filters columns.

That would be super useful, especially for DUI users,foobar2000 out-of-the-box does not have this library viewing functionality; the only way to have this is to use the "foo_facets (Facets)" component. However, there are numerous "features" built into Facets which can not be disabled to allow a simple layout of Filter columns ONLY. i.e., if you choose to use Facets, then you must have the kitchen sink!, you cannot completely detach the Filters functionality from the rest of the components other features.

An interesting advantage to making a Library Filter Columns panel using WSH Panel Mod,is the fact that this is one of the few ways you can bypass the limitations of color usage when using the Default User Interface. i.e., you can program panels for DUI using color functions ("$RGB(x,y,z)") and emulate panels from CUI.

Summing up, I believe a WSH panel containing customizable columns of Library Filters would be a superb JS scripting project for the benefit of ALL foobar2000 users. It would help build a bridge for current CUI users who want to eventually migrate to DUI . . . especially given the fact that CUI is now classed as "Seemingly Abandonware" and the developer ("musicmusic") has not set foot at HydrogenAudio since 2011 !!!!!!!

[Change Log]* v0.0.2 (2013-05-01 15:05 GMT+1):- toolbar headers now are following column text alignment- column name "N°" changed to "#" because of some problem with asian code pages ...- Right click context menu on toolbar Header => Edit Column moved to top of the menu, no more in "Columns" submenu- drag'n drop in this panel => support added- some useless traces still wrote to the console removed![Change Log]

So I have a choice between (1) programming a C++ component from scratch(2) updating a current C++ component whose source code is freely available.

If I was to do this, thenif I choose (1), then I can not bypass the limited DUI color usage options, therefore the advantages are minimal when compared to Facets (foo_facets_.if I choose (2), then we open up a new world of exploration for DUI users and programmers, and can bypass foobar2000 built-in limitations, and help bridge the gap between "DUI" and "[Seemingly Abandonware] CUI"