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 297235 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Re: JScript Panel

Reply #900
Yes, you need JScript Panel 3 (link in sig).

Use 3.0.3 if running fb2k v1.5.x or v1.6.x.
Use 3.1.0-Beta.1 if running fb2k v2 Beta.

edit: since you're must be running 32bit fb2k for 2.8.8 to work, you can use both at the same time so your other panels aren't affected. Try the aptly named script you linked to for about 10 seconds until you get sick of it.

Re: JScript Panel

Reply #901
thanks Marc, works great !! Great you can have both panels at the same time.
And yes, dunno how long i will use this but it looks good :)

Re: JScript Panel

Reply #902
I just added support for art from radio streams. My usual album art scripts have had this feature for sometime, I just forgot to add it to this...

https://gist.githubusercontent.com/marc2k3/1d449cc5bbb2fcfdb51157e49d679ad6/raw/514a4415078ffe4143ba7560ba60a37f5f8e6a17/spinny%2520album%2520art%2520nonsense.txt

Re: JScript Panel

Reply #903
3.1.0-Beta.2

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

The main changes are the addition of utils.TextBox which provides a multi-line text edit area. And Editor Properties have been reset as the component uses new brand new storage settings built in to fb2k v2. If you have custom fonts/colours, export to cfg file first before upgrading.

Re: JScript Panel

Reply #904
The addition of utils.TextBox above means I can offer a cheap text display knock off.



Added bonus is that I'm using DIrectWrite for colour font symbol rendering. The dialog could support that if I used Scintilla but I was too lazy to do that. Maybe for final release.

Title formatting...

Code: [Select]
[🎙️ %artist% ][▶️ %title% ]$crlf()
[💿 %album% ][📅 %date%]$crlf()
[🎵 %genre% ][💬 %codec% %bitrate% kbps ][📊 %__bitspersample% bits ][∿ %samplerate% Hz ][🔊 %channels%]

Re: JScript Panel

Reply #905
Do it is possible to have a "wrap words" option in Scintilla editor?


Re: JScript Panel

Reply #907
Thanks for text display ;D
A little suggestion: implement color output such as $rgb(...) or <>  :D

Re: JScript Panel

Reply #908
Well your post has made me realise the existing $rgb support in JSPlaylist is broken so I just fixed that. I did test it originally but then I made internal changes to the component without updating the script. Doh.

Re-using the code for text display is easy enough...



edit: I forgot to add custom background support. If anyone wants that right now, open the configuration window and replace

Code: [Select]
var panel = new _panel();

with

Code: [Select]
var panel = new _panel({ custom_background : true });

Use the right click menu to customise.

Re: JScript Panel

Reply #909
In example at page have:
[ 0.0, RGB(227, 9, 64, 1) ],
but RGB accept only 3 parameter, right:
[ 0.0, RGB(227, 9, 64) ],

Re: JScript Panel

Reply #910
utils.DetectCharset()
works in x64 but not in x86.

Re: JScript Panel

Reply #911
I get identical results for every file in my test set...



The number after each path is the detected value.

It's never been claimed that it will work for every file...

https://marc2k3.github.io/jscript-panel/docs/namespaces/utils/#utilsdetectcharsetpath

Quote
This may not be accurate and returns 0 if an error occurred.

But x86 vs x64 is a not an issue to me.



Re: JScript Panel

Reply #914
Marc,
quick question for me regarding the Art nonsense script to display the album art :
https://gist.githubusercontent.com/marc2k3/1d449cc5bbb2fcfdb51157e49d679ad6/raw/514a4415078ffe4143ba7560ba60a37f5f8e6a17/spinny%2520album%2520art%2520nonsense.txt

I was wondering what logic you were following for the album Art ID #2 here :
https://marc2k3.github.io/jscript-panel/docs/flags/#albumartid

I'm following the Taglib library to tag my mp3 which is using the following list :
https://taglib.org/api/classTagLib_1_1ASF_1_1Picture.html
and also using Mp3Tag which is using the same list

I'm trying to find out which type i need to use in my Mp3s to follow your #2 : "Disc".

Any pointer is welcome
Thanks



Re: JScript Panel

Reply #915
These ids correspond with fb2k preferences. I don't know have to know or care about the underlying specification for every different file type - the fb2k SDK handles it all for me.

Since I'm playing on fb2k terms, you'll need to embed an image using fb2k (right click>tagging>attach pictures>disc). Now inspect the file using whatever other software to see if it's recognisable/something you can work with.

edit: i always forget about the artwork tab in the Properties. You can attach images/drag drop there too.

Re: JScript Panel

Reply #916
Alright, thanks. i tested it a little bit further and it seems that the "Disc" type that Foobar is using corresponds to the "Media" type of taglib/Mp3tag.
This makes sense actually but i'm up with some library tagging fun !
Thanks

Re: JScript Panel

Reply #917
3.1.0-Beta.3

This adds $rgb support for Text Display. Any current users need to update from the Samples button.
$rgb support has also been fixed in JSPlaylist

Script authors can re-use the DrawColuredText method found in helpers.txt

Just pass the return value of whichever fb.TitleFormat method you use as the text argument.

edit: FFS, just discovered a text alignment bug with the Text Display menu options. Fix incoming.

edit2: Fixed version uploaded. It's been 30 minutes since I posted, hopefully no one grabbed the borked version.

Re: JScript Panel

Reply #918
Known issue: using $rgb() to reset default colour is not supported. I'll have to see if I can fix that. I can only apologise for my incompetence.  :))

edit: now fixed.

Re: JScript Panel

Reply #919
Code: [Select]
buttons.buttons.menu = new _button(0, 0, 36, 36, { char : "\u009D", colour:colours.buttons, font:"Webdings"}, null, function (x, y, mask) {_menu(0, 36);}, 'Menu');
It doesn't work anymore, before it worked.

Re: JScript Panel

Reply #920
We had a very long and tedious discussion about that before.

Place a copy of function _button(..) {} inside your panel and make whatever changes you like.

This will always override what's inside the common.js file.

I know... ty.

Evidently not.

Re: JScript Panel

Reply #921
I know very well.
But, when I reported the possibility of customizing the source, you changed the component and worked.
Now, who knows why?, you removed that change and it no longer works.
Evidently you have a negative bias with those who contribute to the thread, and I will have to keep in mind.

 

Re: JScript Panel

Reply #923
I do have an extremely negative bias towards YOU. I'm happy to answer questions all day long but not when the people asking are so stupid it needs repeating 26 times before it finally "clicks".
I keep in mind your negative Bias and offensive approach, that once again confirm with your posts..