Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: WSH Panel Mod (Read 803457 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

WSH Panel Mod

Reply #1525
Thank's marc2003, for the continued development of foo_uie_wsh_panel_mod, it is very important to improve the foobar interface.
I use in my assembly two versions of a component wsh_panel_mod, first is 1.4.2 (from jk7800 ) and second is 1.5.6p (from ttsping). They can be used at the same time, as the name of the *.dll file is different and name in panel foobar is also different.
Is it possible to change the name of the *.dll file your modification foo_uie_wsh_panel_mod and visible name in the foobar too, or include in the API, functions such as,
utils.ReleaseCapture_ (); uitils.SendAMessage (); utils.GetHWND ();, to be able to move the player window.

Sorry for my english.

WSH Panel Mod

Reply #1526
i'm not really continuing development. i've just found a few things to add by looking at the existing code and copying/modifying it a little bit. i really don't know anything about c++. i know it's something that would take years of study to do properly.

i'm not changing the name because that would break compatibility with everyone's existing layouts. although previous scripts would still work, people's default UI/columns UI would need setting up again from scratch so i won't be doing that. i don't think moving the window is allowed by the SDK license terms - afterall the only way i think it would be useful is if you used other (banned) components that hide the window title bar.


WSH Panel Mod

Reply #1528
@falstaff, did those library things work as expected?

WSH Panel Mod

Reply #1529
@falstaff, did those library things work as expected?


unfortunately i haven't had time to test it
boring bug to fix in JSPlaylist and some improvement have take all my time this week, bug i will ASAP and you'll have feedback for sure
I'd like to use it for my WSH Coverflow panel, so as an option, we'll be able to chose "library browser" mode or as actually "playlist browser" mode...

WSH Panel Mod

Reply #1530
ah ok then. whenever you're ready. 

i'd certainly be interested in using your coverflow script in library mode. it's not much use to me in playlist mode because i typically listen to one album at a time before replacing the playlist contents with another album.

WSH Panel Mod

Reply #1531
I tried it with the optional media library integration in YouTube Track Manager. Both fb.GetLibraryItems() and on_library_changed() seem to be working as expected and are welcome additions.  I have a moderate sized library and it seems pretty fast. I confirmed that fb.GetLibraryItems() added all the items in my media library.

on_library_changed() seems to get called upon each item added/removed/modified. Probably not possible, but one call when the media library has finished updating would be useful. Currently, I am using a timer in on_library_changed() that gets reset with each item added with the aim of only running the fb.GetLibraryItems() and associated code therein once after the last item is done. Problem is what to set the timer to - I mean rescans of hard drive take msec per item but adding long lossless tracks from slow drives can take many seconds per item. Any thoughts on a better solution would be welcome...

WSH Panel Mod

Reply #1532
added/removed/modified.


there are actually 3 separate callbacks for these which i've rolled in to one. i could implement them separately.

and i can certainly test longer files on a deadly slow usb stick to try and look at these issues first hand to see if i have any ideas.

WSH Panel Mod

Reply #1533
i did some quick testing and found the callback is actually called every 5-6 seconds when creating a media library for the first time. i put this in a blank panel..

Code: [Select]
function on_library_changed() {
    var items = fb.GetLibraryItems();
    fb.trace(items.Count);
    fb.trace(new Date());
    items.Dispose();
}


reading from normal hard drive (old mechanical drive), i found around 500 items were added every 5 seconds. note the first entry was generated as soon as i hit the apply button in the media library preferences. you can see no items have been added at that point.

Code: [Select]
0 
Thu Feb 26 14:44:28 UTC 2015
544
Thu Feb 26 14:44:34 UTC 2015
971
Thu Feb 26 14:44:39 UTC 2015
1498
Thu Feb 26 14:44:44 UTC 2015


and so on. i also tested reading my music from my sansa clip+ and the timing was just the same - it was every 5 seconds. the only difference was the number of items added during that time. it was more like 90-100.

i'll see how it behaves with modifying (large) files later. i'd imagine removing files will be pretty instant.

WSH Panel Mod

Reply #1534
[!--sizeo:3--][span style=\"font-size:12pt;line-height:100%\"][!--/sizeo--]^ Yes I basically confirm what you are saying. It seems the  frequency of calling on_library_changed() depends on how fast newly added  tracks arrive. This was tested with just your example code in a wsh panel.

Code: [Select]
Test 1: 13 mp3s on HD added to media library on HD [fast additions][/font]
[font=Calibri]-> 2 callbacks[/font]
[/size][!--sizeo:3--][span style=\"font-size:12pt;line-height:100%\"][!--/sizeo--][font=Calibri] 23034
 Thu Feb 26 19:02:29 UTC 2015
 23034
 Thu Feb 26 19:02:29 UTC 2015

Test 2: 10 mp3s copied from a USB 2 drive to media library on HD  [rate ~1 addition/sec][/font]
[/size][!--sizeo:3--][span style=\"font-size:12pt;line-height:100%\"][!--/sizeo--][font=Calibri]-> 20 callbacks
The number of callbacks being greater than number of[/font]
[/size][!--sizeo:3--][span style=\"font-size:12pt;line-height:100%\"][!--/sizeo--][font=Calibri]items added in this scenario is reproducible

23035
Thu Feb 26 19:18:09 UTC 2015
23035
Thu Feb 26 19:18:09 UTC 2015
23036
Thu Feb 26 19:18:10 UTC 2015
23036
Thu Feb 26 19:18:10 UTC 2015
23037
Thu Feb 26 19:18:10 UTC 2015
23037
Thu Feb 26 19:18:10 UTC 2015
23038
Thu Feb 26 19:18:11 UTC 2015
23038
Thu Feb 26 19:18:11 UTC 2015
23039
Thu Feb 26 19:18:12 UTC 2015
23039
Thu Feb 26 19:18:12 UTC 2015
23040
Thu Feb 26 19:18:13 UTC 2015
23040
Thu Feb 26 19:18:13 UTC 2015
23041
Thu Feb 26 19:18:13 UTC 2015
23041
Thu Feb 26 19:18:13 UTC 2015
23042
Thu Feb 26 19:18:14 UTC 2015
23042
Thu Feb 26 19:18:14 UTC 2015
23043
Thu Feb 26 19:18:14 UTC 2015
23043
Thu Feb 26 19:18:15 UTC 2015
23044
Thu Feb 26 19:18:16 UTC 2015
23044
Thu Feb 26 19:18:16 UTC 2015
[/font]

I suppose that's just the way it works... [/size]

WSH Panel Mod

Reply #1535
i'll try and have a look at how other people handle this. there are some other open source foobar library viewers but i doubt i'll get very far due to my ineptitude.

WSH Panel Mod

Reply #1536
marc, i appreciate your work, really 



WSH Panel Mod

Reply #1539
Thanks, still not take the time to check it cause of JSPlaylist coding, but i'll do soon for my Coverflow script ^^

WSH Panel Mod

Reply #1540
Falstaff,

Is it possible to alter your DUiTunes playlist managers Now Playing icon to check against what type of playlist is playing? EG: Media library, autoplaylist, or regular playlist. I'm looking at this code snippet...

Code: [Select]
if(fb.IsPlaying && this.id == plman.PlayingPlaylist) {
                gr.DrawImage(icon_play, ITEM.x + 6, this.y + icon_y, icon_playlist.Width, icon_playlist.Height, 0, 0, icon_playlist.Width, icon_playlist.Height, 0, 255);
            }
        }


What I'd like to accomplish is have it change to a brighter version of the type of the playlists icon when playing instead of placing the tiny green arrow over the current versions.

Maybe this will help:  http://i.imgur.com/G8TxCPt.png

Something like this for color order - Idle > Playing > Selected. Of course there would be a different style icon for each of the current playlist types available.

WSH Panel Mod

Reply #1541
you can tell if a playlist is an autoplaylist... that's it.

Code: [Select]
fb.IsAutoPlaylist(idx);


WSH Panel Mod

Reply #1542
Hello everyone

I have problem after i update foo_uie_wsh_panel_mod.dll to 1.5.8 - Aw, crashed . I using skin Xchange 360 by Br3tt (my favorite). After this update problem is with few things:

For example:
WSH Panel Mod ({A4CEED06-F3D8-4464-AE8D-F2AC641A7484}): Microsoft JScript - błąd czasu wykonywania:
Obiekt nie obsługuje tej właściwości lub metody.
File: <main>
Line: 145, Col: 7
<source text only available at compile time>

All problematic place when i check script in every case have the same code g_timer = window.CreateTimerInterval many lines but this same timer.

How to fix this problem?

Sorry for my english.

WSH Panel Mod

Reply #1543
Hello everyone

I have problem after i update foo_uie_wsh_panel_mod.dll to 1.5.8 - Aw, crashed . I using skin Xchange 360 by Br3tt (my favorite). After this update problem is with few things:

For example:
WSH Panel Mod ({A4CEED06-F3D8-4464-AE8D-F2AC641A7484}): Microsoft JScript - b??d czasu wykonywania:
Obiekt nie obs?uguje tej w?a?ciwo?ci lub metody.
File: <main>
Line: 145, Col: 7
<source text only available at compile time>

All problematic place when i check script in every case have the same code g_timer = window.CreateTimerInterval many lines but this same timer.

How to fix this problem?

Sorry for my english.


go back to WSH Panel Mod 1.5.6 for this skin, it will solve the problem as no update of this skin is planned for now. v1.5.8 don't bring anything for this skin, so why asking for something you don't need ?

HTH



WSH Panel Mod

Reply #1546
^there's nothing to stop you creating a github account and exporting or you could just start a new thread in the uploads forum so the already compiled zip/component files are kept for posterity.

the original developer has probably decided real life is more important than maintaining this project so i don't think an official repository is particularly necessary.

WSH Panel Mod

Reply #1547
Hello!
mark2003 where I can get the scripts and samples for other elements wsh panels which were presented on your site?
last.fm | bulletproof2k