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 script discussion/help (Read 523714 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: JScript Panel script discussion/help

Reply #1600
Use the web view component for spinning images. It's much better suited for it.

 

Re: JScript Panel script discussion/help

Reply #1601
There was a script in ilovefb2k"s Script ({deployed} album_art [cd-vinyl].txt) script to rotate the CD, so...
https://hydrogenaud.io/index.php/topic,110516.msg1048177.html#msg1048177

Additional Images Folder: https://mega.nz/file/peNnUZ5T#6ih7Wjm9g3e4Sq2LvBhRMfGWEvm-qSjFCO-rvMIU8uE
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel script discussion/help

Reply #1602
so...

what?

I said web view was "better suited" which it still is. I didn't say JSP3 couldn't do it. I posted a proof of concept years ago....

https://gist.github.com/marc2k3/1d449cc5bbb2fcfdb51157e49d679ad6

I never distribute it along with the component because it's totally crap. The novelty wears thin after about 3 or 4 seconds.

Re: JScript Panel script discussion/help

Reply #1603
There was a script in ilovefb2k"s Script ({deployed} album_art [cd-vinyl].txt) script to rotate the CD, so...
https://hydrogenaud.io/index.php/topic,110516.msg1048177.html#msg1048177

Additional Images Folder: https://mega.nz/file/peNnUZ5T#6ih7Wjm9g3e4Sq2LvBhRMfGWEvm-qSjFCO-rvMIU8uE

The version posted by @yeyo in the web view thread is the best ever.

I hope to post future updates, in particular the internal image management currently manages the images in the folder they belong to.

While for the button bar in text display it would be interesting to manage the bar at the top, bottom right and left. I saw @ilovefb2k did something like this in his skin.

I also saw other interesting things here:

https://www.esnpc.com/foorab-for-foobar2000-theme/

Re: JScript Panel script discussion/help

Reply #1604
@marc2k3
> "Spinny Album Art Nonsense"
Ahaha...

I got it. Thank you.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel script discussion/help

Reply #1605
@ApacheReal

> The version posted by @yeyo in the web view thread is the best ever.

> I hope to post future updates, in particular the internal image management currently manages the images in the folder they belong to.

Yes I know, I tested it.
------
> I also saw other interesting things here:

> https://www.esnpc.com/foorab-for-foobar2000-theme/

Thank you for the information.
You have a lot of information.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)


Re: JScript Panel script discussion/help

Reply #1607
@ilovefb2k

> {deployed} album_art [brute-force search].txt
>      JSP3 Cover Panel (64bit DUI)

> Albumart and Thumbs Isn't the scroll upside down?

This happens when you scroll the panel.
Scrolling over a thumbnail changes the album art.

Hi Air KEN,
Thank you for your feedback, i now see your point.
i did reserve artwork panel's mouse-wheel eventlistener for blurring/transparency background tuning on-the-fly.
Then, i preferred to leave that for window property  cause that configuration should be 1-time setting to not interfere user experience.
I have noted your suggestion.
Regards.

Re: JScript Panel script discussion/help

Reply #1608
@ApacheReal

> The version posted by @yeyo in the web view thread is the best ever.

> I hope to post future updates, in particular the internal image management currently manages the images in the folder they belong to.

Yes I know, I tested it.
------
> I also saw other interesting things here:

> https://www.esnpc.com/foorab-for-foobar2000-theme/

Thank you for the information.
You have a lot of information.

Very nice skin. How to download it?

Re: JScript Panel script discussion/help

Reply #1609
@ApacheReal

> The version posted by @yeyo in the web view thread is the best ever.

> I hope to post future updates, in particular the internal image management currently manages the images in the folder they belong to.

Yes I know, I tested it.
------
> I also saw other interesting things here:

> https://www.esnpc.com/foorab-for-foobar2000-theme/

Thank you for the information.
You have a lot of information.

Very nice skin. How to download it?

I have no idea.

I have some difficulty with the Chinese language.

Re: JScript Panel script discussion/help

Reply #1610
@ApacheReal

> The version posted by @yeyo in the web view thread is the best ever.

> I hope to post future updates, in particular the internal image management currently manages the images in the folder they belong to.

Yes I know, I tested it.
------
> I also saw other interesting things here:

> https://www.esnpc.com/foorab-for-foobar2000-theme/

Thank you for the information.
You have a lot of information.

Very nice skin. How to download it?

On 118pan.com :

https://www.118pan.com/wap.php?action=space&folder_id=21311



The installation is done in Chinese!

Re: JScript Panel script discussion/help

Reply #1611
@ApacheReal

> The version posted by @yeyo in the web view thread is the best ever.

> I hope to post future updates, in particular the internal image management currently manages the images in the folder they belong to.

Yes I know, I tested it.
------
> I also saw other interesting things here:

> https://www.esnpc.com/foorab-for-foobar2000-theme/

Thank you for the information.
You have a lot of information.

Very nice skin. How to download it?

On 118pan.com :

https://www.118pan.com/wap.php?action=space&folder_id=21311



The installation is done in Chinese!

Thanks. I can't install it because Windows detects some threats related to this file..

Re: JScript Panel script discussion/help

Reply #1612
Hi all,
I have moved to foobar2000 64bit to extend the memory beyond 4GB, this leaves llot of plugins behind.
To overcome, i have to recourse to JScript Panel3 and, therefore, ported/modified some scripts from others.
It seems, someone may have the same things while struggling with 64bit, i would like to share these scripts as attached.
last but not least, sorry original authors, especially Marc2003, Br3tt among others for "destroying" their beauty full codes.

you are free to use and make any changes as long as retain original author names.

[due to limitation, i may have little resource to react to this post.]
/*------------ [JScript Panel 3] 64bit scripts -----------------*/
// date: 03PM25 22Jul24
// viking, vnav.vn

Credit to original authors' scripts: Marc2003, marc2k3, Iprad, Br3tt aka Falstaff, eurekagliese, TT, Jul23, Hunter.

//system test:
- Windows 11, screen : FullHD, scale 150%
- foobar2000 64bit, preview 7jul24
- foobar200 Default UI (CUI should be fine). 
- font :  as listed in folder [font], of which  [Segoe Fluent Icons] maybe already installed under Windows 11.

//dependencies:
- latest 64bit components and exe files as in [user-components-x64] folder, including JScript Panel 3  [https://github.com/jscript-panel/release/releases] - latest version is 3.6.1
  // note: files were deleted on purpose to mitigate risk, if any, during transfer over network
- to enable youtube view, download: yt-dl.exe from GitHub [https://github.com/yt-dlp/yt-dlp]. 
- to enable spectrum analysis, download :  spek.exe [https://github.com/alexkay/spek]

//pre-install:
- download and install foobar2000 64bit, latest version as of Jul24 (2.1.5).
- unzip file into foobar2000 64bit root folder.
- download and install/copy components.
- download exe files  (to enable youtube, spectrum checking)
- install fonts (if any).

//install JScript Panel 3 (@Marc2003) scripts:
- under DUI.
- enable edit mod
- insert [JScript Panel 3] panel.
- copy script from [foobar2000\skins\viking\scripts\jsp3] folder and paste into [JScript Panel 3] panel.
- copy script [foobar2000\skins\viking\scripts\jsp3_lib\vnav_mod\jsplaylist_main.js] and paste into [JScript Panel 3] panel.
- copy script [foobar2000\skins\viking\scripts\jsp3_lib\vnav_mod\jssb.js] and paste into [JScript Panel 3] panel.

- Apply.

/*------------------------*/
Script detail: (alphabet sort)
Script { name, original author (idea), original source, comment}

I. folder : foobar2000\skins\viking\scripts\jsp3_lib\vnav_mod
             ------------------------------------------------

//1- name : jssb.js,
  original author (idea): Br3tt aka Falstaff [enhanced, tuned by Marc2003]
  original source : Smooth Browser
  comment: /* modification */
   + main features added:
      # get artwork from local, lastfm.
      # brute-force searching for artworks located in every-customised relative folders as specifying in   
      [foobar2000\skins\viking\misc\art_sub_folder.ini] file.   
      # resize all artworks as thumbnails to speed up the whole.
      # [folder structure]  library browsing.

//2- name : jsplaylist_main.js,
  original author (idea): Br3tt aka Falstaff [enhanced, tuned by Marc2003]
  original source : JS Playlist.
  comment: /* modification */
   + main features added:
      # get artwork from local, lastfm.
      # brute-force searching for artworks located in every-customised relative folders as specifying in   
      [foobar2000\skins\viking\misc\art_sub_folder.ini] file.   
      

II. folder : foobar2000\skins\viking\scripts\jsp3
             ------------------------------------

//1- name : {deployed} album_art [brute-force search],
  original author (idea): Marc2003
  original source : thumbs and artwork script
  comment: /* modification */
   + main features added:
      # get artworks from local and lastfm at the same time.
      # brute-force searching for artworks located in every-customised relative folders as specifying in   
      [foobar2000\skins\viking\misc\art_sub_folder.ini] file, and absolute folder (via panel property).   
      # resize and cache all artworks as thumbnailsto speed up the whole.
      # resize and save BIG artworks under and per album.  
      # view origial artwoks (ensure quality)
      # background : as default image all per [all/1st] artworks
      # second artist artworks download (via [{deployed} artwork download by artist from lastfm.txt] script)
     + limit: loading images are not asynced.


//2- name : {deployed} album_art [properties],
  original author (idea): Marc2003
  original source : Text Display
  comment: /* modification */
   + main features added:
      # context menu : more functions
      # buttons : 4 positions, user-defined coord x,y (via property)
      # youtube:  download

//3- name : {deployed} analog clock,
  original author (idea): Hunter
  original source :
  comment: /* modification */
   + ported to JScript Panel 3

//4- name : {deployed} control bar,
  original author (idea): marc2k3 coded, eurekagliese enhanced
  original source :
  comment: /* modification */
   + main features added:
      # get artwork from local, lastfm.
      # brute-force searching for artwork located in every-customised relative folders as specifying in   
      [foobar2000\skins\viking\misc\art_sub_folder.ini] file.   


//5- name : {deployed} cover flow,
  original author (idea): Br3tt aka Falstaff
  original source :
  comment: /* modification */
   + ported to JScript Panel 3   
   + main features added:
      # get artwork from local, lastfm.
      # brute-force searching for artwork located in every-customised relative folders as specifying in   
      [foobar2000\skins\viking\misc\art_sub_folder.ini] file.   


//6- name : {deployed} lyrics download manager,
  original author (idea): 
  original source :
  comment: /* coded */
   + main features:
      # download lyrics via Google host.
      # get lyrics translated online by Google site
   + limit:  async lyrics only.     

//7- name : {deployed} TechnicsRSBX_iprad,
  original author (idea):  Iprad
  original source :
  comment: /* coded */
   + ported to JScript Panel 3   
   + main features added:
      # pseudo - VU Analog Meter. (wish list: JScript Panel 3, fb.peakLeft, fb.pakRight . . . properties )

//8- name : {deployed} tree explorer,
  original author (idea):  Br3tt aka Falstaff
  original source :
  comment: /* coded */
   + ported to JScript Panel 3   

//9- name : {deployed} tree explorer,
  original author (idea):  Br3tt aka Falstaff
  original source :
  comment: /* coded */
   + ported to JScript Panel 3   

note: images cached are all located under [foobar2000\$recycle.bin] folder, per respective components, panels.

/*/ Music can bring happiness, let it on. /*/
// EOF
Is the downloaded folder empty?


Re: JScript Panel script discussion/help

Reply #1614
@sq68

Reply #1592 By: ilovefb2k
JSPP3_fb2k0 (64 bit Windows11 - screen fullHD 150pct)_22Jul24.rar
https://hydrogenaud.io/index.php/topic,110516.msg1048254.html#msg1048254

Reply #1593 - Additional Images Folder
{deployed} album_art [cd-vinyl].rar
https://hydrogenaud.io/index.php/topic,110516.msg1048255.html#msg1048255

\profile\user-components-x64

The user-components-x64 folder is empty.
Please assemble it yourself.
Not all components are required.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD620S, SENNHEISER HD 490 Pro Plus, beyerdynamic DT 1990 PRO, HiFiMAN Edition XS, HIFIMAN ANANDA, Bowers & Wilkins P7, FiiO FT5, FiiO FT1 Pro, 水月雨 (MOONDROP) 空鳴 - VOID, SONY WH1000XM5 (made a Upgrade/Balanced Cable by myself)

Re: JScript Panel script discussion/help

Reply #1615
I cannot correctly configure the module to open the conversion window from the button/icon:



   this.buttons.mp3 = new _button(x, y, bs+10, bs, { img : mp3 } , null, function () { fb.RunContextCommand('Convert\Quick convert', plman.GetPlaylistSelectedItems(plman.ActivePlaylist));}, "mp3");



Re: JScript Panel script discussion/help

Reply #1616
I cannot correctly configure the module to open the conversion window from the button/icon:



   this.buttons.mp3 = new _button(x, y, bs+10, bs, { img : mp3 } , null, function () { fb.RunContextCommand('Convert\Quick convert', plman.GetPlaylistSelectedItems(plman.ActivePlaylist));}, "mp3");

Try this
Code: [Select]
var handleList = plman.GetPlaylistSelectedItems(plman.ActivePlaylist);
this.buttons.mp3 = new _button(x, y, bs+10, bs, { img : mp3 } , null, function () { handleList.RunContextCommand("Convert/Quick convert"); }, "mp3");

Re: JScript Panel script discussion/help

Reply #1617
I cannot correctly configure the module to open the conversion window from the button/icon:



   this.buttons.mp3 = new _button(x, y, bs+10, bs, { img : mp3 } , null, function () { fb.RunContextCommand('Convert\Quick convert', plman.GetPlaylistSelectedItems(plman.ActivePlaylist));}, "mp3");

Try this
Code: [Select]
var handleList = plman.GetPlaylistSelectedItems(plman.ActivePlaylist);
this.buttons.mp3 = new _button(x, y, bs+10, bs, { img : mp3 } , null, function () { handleList.RunContextCommand("Convert/Quick convert"); }, "mp3");

yes. thx



   var handleList = plman.GetPlaylistSelectedItems(plman.ActivePlaylist);
   
   this.buttons.mp3 = new _button(x, y, bs+10, bs, { img : mp3 } , null, function () { handleList.RunContextCommand("Convert/MP3 320kbps CBR"); }, "mp3");   

Re: JScript Panel script discussion/help

Reply #1618


I'll tell you where I got to.

Everything must be customized according to your layout.

In foobar2000 there is no possibility to export the configuration of the convert panel unlike the dsp panel where you can export / save / load the presets.



Re: JScript Panel script discussion/help

Reply #1620
Yes, always.

With 3-3.3.29 the problem doesn't exist.


Re: JScript Panel script discussion/help

Reply #1622
It's just a minor issue but i'd like to know if anybody else having this issue.

I'd say it qualifies as a major issue but I still can't reproduce it. If I can't reproduce it, I can't fix it. :/

The fact you're getting a nice dark mode compliant background means it's not totally failing. I expect pure white or pure black screens on bugs in my code. But how the background gets rendered and not the code inside on_paint is a mystery.... well to me it is.

Re: JScript Panel script discussion/help

Reply #1623
I've attached a test version which spams the console a bit. To use this, any scripts with timers should be removed otherwise the console logging will be overwhelming. Ideally, the only JSP instances should be the ones in tabs and nothing else.

Post the output when a panel goes blank.




Re: JScript Panel script discussion/help

Reply #1624


Sorry for the delay in replying, I was attempting to trigger the blank panel on a portable installation, also tried with older and legacy jsp version, as well as testing it with and without other components, but was unable to reproduce the issue. Unlike the installed version that got the issue like the gif above.