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: JScript Panel (Read 298048 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: JScript Panel

Reply #1225
There seems to be an issue with Smooth Playlist in the last FB v1.1.6 compatible v3.0.28 when using the keyboard up and down keys to navigate to previous or next tracks. Here's the error code:

Code: [Select]
JScript Panel 3.0.28 (Smooth Playlist by Br3tt aka Falstaff)
JavaScript runtime error
'timers' is undefined
File: C:\Users\xxx\work\Foobar2000\profile\user-components\foo_jscript_panel3\samples\smooth\common.js
Line: 129, Col: 2

Uninstalling it and installing v3.0.19 got it working properly, though I had to replace the code for 'Track Info + Seekbar + Buttons.txt' with the one from v3.0.19. So far it looks like the rest of the v3.0.28 panel codes are playing nice with  v3.0.19.

Geopoliticus Child Watching the Birth of the New Man


Re: JScript Panel

Reply #1227
Lots of work there. I'll take a few out for a spin around the block a bit later. Thanks marc.
Geopoliticus Child Watching the Birth of the New Man

Re: JScript Panel

Reply #1228
@marc2k3 quick question for you,
Is there any way to retrieve the query string of an autoplaylist ? i didnt find any function in plman for that.
Thanks

Re: JScript Panel

Reply #1229
Is there a way to modify the Last.fm artist art Thumbs code so that it auto-updates when the same stream's metadata changes, like what already happens with Last.fm Bio?

You can try opening the configuration window and looking for this...

Code: [Select]
function on_playback_dynamic_info_track() {
panel.item_focus_change();
}

Replace it with...

Code: [Select]
function on_playback_dynamic_info_track(type) {
if (type == 0) thumbs.playback_new_track();
}

Is there any way to retrieve the query string of an autoplaylist ? i didnt find any function in plman for that.

Nope. It's been asked for before but I'm pretty sure the fb2k SDK does not provide any means for doing it.

Re: JScript Panel

Reply #1230
Is there a way to modify the Last.fm artist art Thumbs code so that it auto-updates when the same stream's metadata changes, like what already happens with Last.fm Bio?

You can try opening the configuration window and looking for this...

Code: [Select]
function on_playback_dynamic_info_track() {
panel.item_focus_change();
}

Replace it with...

Code: [Select]
function on_playback_dynamic_info_track(type) {
if (type == 0) thumbs.playback_new_track();
}
marc2k3, THANKS for this, it works great with both v2.1 and 1.6.16!  Much appreciated.



Re: JScript Panel

Reply #1233
3.3.0 is now unified for any fb2k version above 1,6.6. A few features remain exclusive to fb2k 2.0 users

https://github.com/jscript-panel/release/releases

I'll try and get the docs site updated ASAP but it seems to be borked right now.. The docs site is now updated...

https://jscript-panel.github.io/docs/


Re: JScript Panel

Reply #1234
I am always grateful for your script.

v3.3.0
Samples - Track Info + Seekbar + Buttons

Do you have any plans to add "Colours > Enable Dynamic" Option to "Track Info + Seekbar + Buttons"?

SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD 490 PRO, DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH-ULT900N (ULT WEAR) (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel

Reply #1235
I may consider it over the weekend.

If you're the one updating the japanese wiki, it should be made clear 3.3.0 is for fb2k 2.0 as well. Currently it says 1.6.6 - 1.6.16.

It's 64bit compatible and all internal functions that were optimised for 2.0 still are. It will fall back to old code if 1.6.x is used.

Re: JScript Panel

Reply #1236
> If you're the one updating the japanese wiki, it should be made clear 3.3.0 is for fb2k 2.0 as well. Currently it says 1.6.6 - 1.6.16.
thank you. Check and correct.
---
Special thanks to Text Display.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD 490 PRO, DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH-ULT900N (ULT WEAR) (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel

Reply #1237
Hey marc. Would it be possible to bring back the "Panel Properties" option for the Smooth Playlist that was available back in v3.2.25. With that it was possible to edit the code to switch the positions of Artist and Album names.

Also the placeholder for missing album art set in 'Preferences > Display >Album Art > Stub image path' used to show up in Smooth Playlist. It doesn't seem to work anymore. Am I missing an option somewhere, or is this something that needs new jscript code?

I've only recently remade a build I 1st put together back in 2016 that was having issues with foo_playcount I never resolved. Happily that's history now with x86 FB 2.0 and updated versions of components for all my old panels. The only thing I really miss is your 'Now playing (basic).txt' from js_marc2003-v4.0 2019.


I don't guess there's any chance you'd be interested in resurrecting that elegant old dinosaur, is there?

Thanks so very much for all the phenomenal work you put into all these scripts marc!
Geopoliticus Child Watching the Birth of the New Man

Re: JScript Panel

Reply #1238
You can still access panel properties by holding Shift+Win key before right clicking.

The stub image from the Preferences has never been supported in any smooth samples because they resize and cache album art to disk for performance reasons. This is not anything new.

If you really want it, you can change the false to true on this line of code...

https://github.com/jscript-panel/component/blob/1a3b1f8eb49bb1b7090b82f6442687e0e0bc9ec0/samples/smooth/common.js#L138

I might consider the combined image/bio in a single panel at some point.

 

Re: JScript Panel

Reply #1239
You can still access panel properties by holding Shift+Win key before right clicking.
Got it! Thanks.

Quote
The stub image from the Preferences has never been supported in any smooth samples because they resize and cache album art to disk for performance reasons. This is not anything new.
Oh! I've been using one of Br3tt's versions that was doing that from way back to Kameleon days when we'd copy whole jscript folders to the root of FB. I guess those were loading the original larger album art files. I see your script makes smaller thumbnails and saves them to \js_smooth_cache, which must be what you're saying about performances reasons. Faster loading times.

Quote
If you really want it, you can change the false to true on this line of code...

https://github.com/jscript-panel/component/blob/1a3b1f8eb49bb1b7090b82f6442687e0e0bc9ec0/samples/smooth/common.js#L138
Ran into a bit of an issue with the script making thumbs from my png stub image that has a transparent background where the resulting jpgs all ended up with black backgrounds against my overall white panel backgrounds. I can just make a white background copy. I don't have many tracks/albums without album art.

Quote
I might consider the combined image/bio in a single panel at some point.
That'd be sweet!
Geopoliticus Child Watching the Birth of the New Man

Re: JScript Panel

Reply #1240
Oh! I've been using one of Br3tt's versions that was doing that from way back to Kameleon days

That's what JSplaylist is baed on. It handles stub images with transparency because there is no caching. The component method for saving images to disk only writes jpg. It could be expanded to other formats but I really don't want to. It was never meant for quality, only speed.

Re: JScript Panel

Reply #1241
Hey i am new to trying out using JScripts for changing my Foobar experience and i see loads of cool tings to do with it thanks for making it possible.

One thing that i would really love is if the Sample playback buttons one could be made into a vertical row I think it would be useful for many people who use foobar on a vertical screen and has a tall narrow layout but problem is i know just minus 14 about coding ive been fiddling around with trial and error but no luck yet.

So just shooting it out here if anyone would consider making that an option that's a toggle in a future update

thanks and kind Regards.
PC - Teac UD-505 - Adam Audio A4V - DCA ÆON Open X
Samsung S23 Ultra 512GB - Fiio UTWS5 - TinHifi P1 Max.

Re: JScript Panel

Reply #1242
That's what JSplaylist is baed on. It handles stub images with transparency because there is no caching. The component method for saving images to disk only writes jpg. It could be expanded to other formats but I really don't want to. It was never meant for quality, only speed.
Br3tt\Falstaff was quite the innovator. Wish he was still active. I'd love to see him rework his feature-rich Kameleon, still my all time favorite FB build.  

Yeah, I can't see any reason to be considering png support. I notice the bio.www.last.fm.json files in \js_data\artists match the ones in \wsh_data\artists from my old build. I've accumulated well over a gig of photos through the years that I've copied into the new build that seems to play nice with both the old .json & .jpgs. Haven't yet looked into which panels are using all these new getSimilar, getInfo, echonest, almusic.(album) .json file types.

Oh... I'd been synchronizing those js_smooth_cache album thumbs between builds on my PC and notebook. But while testing changing 'false' to  'true', I noticed 3 what look like indexing files with 10 digit file names. If I sync just the album jpgs between the 2 systems, is that going to screw anything up? 
Geopoliticus Child Watching the Birth of the New Man


Re: JScript Panel

Reply #1244
Oh... I'd been synchronizing those js_smooth_cache album thumbs between builds on my PC and notebook. But while testing changing 'false' to  'true', I noticed 3 what look like indexing files with 10 digit file names. If I sync just the album jpgs between the 2 systems, is that going to screw anything up? 

Cached album art filenames are based on the path of the track its associated with. The paths would need to be identical on both systems for a "shared" cache to work. If the paths are different, it will ne no different to the script never seeing the track before and new cached files will be generated.

Re: JScript Panel

Reply #1245
Cached album art filenames are based on the path of the track its associated with. The paths would need to be identical on both systems for a "shared" cache to work. If the paths are different, it will ne no different to the script never seeing the track before and new cached files will be generated.
Okay. I'll delete the folders on both systems, set identical paths and let them regenerate. Not really a big deal with such small files, as intended. Thanks for the feedback marc.
Geopoliticus Child Watching the Birth of the New Man

Re: JScript Panel

Reply #1246
Hello marc2k3... sorry for keep on bugging you but I decided to move my fb2k setup from Desktop to Laptop and I seem to face some issue with utils.DownloadFileAsync, basically I am using it along with on_download_file_done as well.

On my Desktop, it works flawlessly but on my Laptop, I'm not able to pinpoint what exactly is causing the issue... I used the function like this... (window.ID, the full url which contains the image hosted elsewhere, the absolute path with extension for where the file gets saved)

but I keep getting error_text hinting out Object not found... what exactly could be causing the issue here?

Edit: Fixed it... was a combination of missing slashes and the full URL for the file save location and URL respectively...

Re: JScript Panel

Reply #1247
Hello,

how can I set the font and color in JScrip3/Samples:Properties. I already got the color of the heading (see picture below)

Re: JScript Panel

Reply #1248
Is it possible to make a text like the title song ( gr.WriteText ) to scroll from left to right in Jscript Panel 3 ?

The offset is only vertical in WriteTextLayout( ) ? I can not figure out how to do it another way ? Thanks You .