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 312288 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: JScript Panel

Reply #1476
Good Morning,

the problem is back with this version but only for the Edit Menu, all other menus including submenus are working without problems. The wrong submenus in the Edit menu all come from WinRAR as you can see from the second screen shot. Ocasionally there's also Equalizer shown behind Remove dead items.


Re: JScript Panel

Reply #1477
Hi there,

Reply #1471 JSP3 gave me some 147 "plop" items on the fresh install, and ... 534 on my main install (those 16 foo_flowin sub-menus I have). The console could not even keep them all...

Spoiler (click to show/hide)

Reply #1475 JSP3 is still giving me glitched menus like 'File > Add folder > Equalizer'. Nothing on fresh install for first 10 clicks then I got 'Edit > Clear > (View > Layout sub menu) > Quick Setup' (etc). So no luck there.

(I should point out fresh is DUI, main is CUI)

Edit: Going back to #1471 JSP3 on main install... no glitches so far. :)  And 15 minutes of clicking later everything is fine. I'm curious what was causing the glitches?

Re: JScript Panel

Reply #1478
If that works it's just bonkers. My original code allows 999 items for File, 999 for Edit etc. That mod allows 9999. But you guys are showing a few hundred at most combined.

I can post a fixed version with the 9999 limit but I'm so confused by it all, I started a thread in dev section about it...

https://hydrogenaud.io/index.php/topic,125527.msg1039870/topicseen.html#new

edit: corrected numbers

Re: JScript Panel

Reply #1479
3.4.5 contains the workaround. I'm not calling it a fix because that would imply I know what I'm doing.  :))

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

@anamorphic and @Major_Tom , thanks for testing.

Re: JScript Panel

Reply #1480
The workaround is working, thank you. :)

Hope you get some rest, looks like you've been posting around the clock...


Re: JScript Panel

Reply #1482
Competition time. Who has had this bug the longest and chose not to report it?  ;D

This menu is part of my main layout. Maybe I don't use it everyday but it does get used and if I encountered this bug myself, I'd obviously be all over it.

For bugs I don't encounter, I do rely on others to report them. If I'm being a douche bag to people reporting bugs, it's always because of the appalling quality of the reporting. I guess I should try harder to be tolerant but it's really hard work at times....

Re: JScript Panel

Reply #1483
I have a small refresh question/issue about JS3.

In my CUI/PSS (Bottom) panel I have a lot of different plugins active (foo_wave_minibar_mod, foo_quicksearch, foo_vis_vumeter, foo_uie_vis_peakmeter_spectrum and a couple of different representations of foo_uie_vis_peakmeter_spectrum).
Most of my audiocontrolbar is made of separate JS3 toolbars/panels (Menu, Stop, Play/Pause, Prev, Next, PBO, OutputDevice and VolumeBar).

I spent a lot of time optimizing refreshes in my skin to achieve minimal screen flicker. Therefore I only sent relevant PANELSHOW:0 commands from textbuttons/imagebuttons to force a screen update to panels that I know will be changed on that particular mouseclick. Works fine, but all JS3 panels in this Bottom panel are updating always while none of the other plugins do.
Same thing happens upon track change.

The JS3's seem to hide themselves (like they received a PANELSHOW:0 command) and then show themselves directly after that which results in a flicker.

Is there a way/setting to change this behavior of JS3 panels?

BTW. Only JS3 panels in their parent panel are affected. JS3 panels which have a different parent panel don't flicker.

Re: JScript Panel

Reply #1484
I'm not investigating any Panel Stack Splitter issues. It's dead to me and I have zero interest in it.

But I will give some advice from my time using it. This is from way before I started any component development and just used it like everyone else....

I never used PANELSHOW / $showpanel. I'd make sure forced layout was checked for every child panel. Never set positions from that tab, always from script.

Then I used global variables
Code: [Select]
$init_ps_global(panel_index,0)
//my button would $set_ps_global(panel_index,WHATEVER) //may be it's different from buttons, I can't remember, this is from memory, not tested, you get the idea

Then I'd hide all panels with $movepanel. If had 3....
Code: [Select]
$movepanel(0,0,0,0,0)
$movepanel(1,0,0,0,0)
$movepanel(2,0,0,0,0)

Then call $movepanel again on the one panel I wanted to show
Code: [Select]
$movepanel(%panel_index%,0,0,%_width%,%_height%)

If that doesn't work, I don't care. Replace JSP with SMP, whatever.

Re: JScript Panel

Reply #1485
If that doesn't work, I don't care. Replace JSP with SMP, whatever.

Thank you for taking the time to respond.

Of course I'm using the method you describe with panels.

I'm not asking to investigate PSS issues.
I'm just pointing out that JSP handles refreshes differently compared to all other plugins (in the same parent panel).
And I just asked if there was a way to change that behavior, because I don't like flickering stuff.

I guess your last remark would have sufficed.

Re: JScript Panel

Reply #1486
Of course I'm using the method you describe with panels.

You specifically said you were using PANELSHOW. I never used it because of the glitches. Meh. :/

Maybe the fact I rewrote the entire graphics subsysytem in JSP3 to use Direct2D instead of ye olde GDI from the WSH panel mod/JSP1/JSP2 days is the issue. Who knows? Who cares?

Re: JScript Panel

Reply #1487
So I took the time to check this out with this bit of PSS code.

Code: [Select]
$init_ps_global(panel_index,0);

$movepanel(0,0,0,0,0)
$movepanel(1,0,0,0,0)
$movepanel(2,0,0,0,0)

$movepanel(%panel_index%,0,0,%_width%,$sub(%_height%,30))

$textbutton(0,$sub(%_height%,30),100,30,PANEL 1,PANEL 1,SETGLOBAL:panel_index:0;REFRESH,fontcolor:0-0-0,)
$textbutton(100,$sub(%_height%,30),100,30,PANEL 2,PANEL 2,SETGLOBAL:panel_index:1;REFRESH,fontcolor:0-0-0,)
$textbutton(200,$sub(%_height%,30),100,30,PANEL 3,PANEL 3,SETGLOBAL:panel_index:2;REFRESH,fontcolor:0-0-0,)

It does flicker with panels added as CUI toolbars for the transparency hack. It's perfectly fine for "normal" panels. So yeah, nothing I'm doing about that.



Re: JScript Panel

Reply #1490
3.4.6

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

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

The docs site is no longer pink. After nearly 2 years, I've had enough. :P

Unfortunately all 16 JS3 buttons and panels (Smooth Playlist Manager, Properties + Other Info, Thumbs) I use lost transparency with this upgrade. And frankly speaking it does not look great at all.

I read the release notes, but I don't understand:
Transparency is now reserved exclusively for genuine Columns UI toolbars. Adding as a toolbar via the Columns UI Layout settings will have no effect and it will be a normal panel with a solid color background.

Please explain how I can restore transparency for the JS3 stuff or propagate 3.4.5 like 3.3.40 2.8.8 as a legacy release.

Re: JScript Panel

Reply #1491
hi
i don't know if it's the right place ,but i have asked about how to customize a theme based on JScript Panel
the theme is pretty famous and is Tedgo 's DarkOne4Mod v2.0 2019
the last version let a user to add some buttons and use JScript panel. , to assign to the buttons some functions , they should be 20 buttons
for example i would like to have a button to enable/disable replaygain and switch between album/track , or  dps , radio ,dsp presets
is here the right place?
if not  ,my apologies
thanks

 

Re: JScript Panel

Reply #1492
I kind of like the idea to add a button to control replaygain which I almost implemented.
All done but not finalized, because of a two small issues:

1) Is there a plman.ReplayGain (like plman.PlaybackOrder) variable available to reflect current state of replaygain?
2) Is a function on_replaygain_changed(new_index) available (like on_playback_order_changed(new_index))?

If not available, can those please be added?

Re: JScript Panel

Reply #1493
I kind of like the idea to add a button to control replaygain which I almost implemented.
All done but not finalized, because of a two small issues:

1) Is there a plman.ReplayGain (like plman.PlaybackOrder) variable available to reflect current state of replaygain?
2) Is a function on_replaygain_changed(new_index) available (like on_playback_order_changed(new_index))?

If not available, can those please be added?
hi
have you tried  DarkOne4Mod v2.0 2019 , it's pretty easy to custmoze
what about a button to enable  dps presets or even to last.fm love /unlove a song ?
by the way beautiful screenshots , have you used the old v1 or v2 darkone4mod?
thanks

Re: JScript Panel

Reply #1494
I kind of like the idea to add a button to control replaygain which I almost implemented.
All done but not finalized, because of a two small issues:

1) Is there a plman.ReplayGain (like plman.PlaybackOrder) variable available to reflect current state of replaygain?
2) Is a function on_replaygain_changed(new_index) available (like on_playback_order_changed(new_index))?

If not available, can those please be added?
hi
have you tried  DarkOne4Mod v2.0 2019 , it's pretty easy to custmoze
what about a button to enable  dps presets or even to last.fm love /unlove a song ?
by the way beautiful screenshots , have you used the old v1 or v2 darkone4mod?
thanks

Yes, I'm using DarkOne as well. The original one, which I heavily modified, since I did not like the flat view of Mod2.
My ReplayGain button works fine, but I cannot see current state therefore the mocked up images and the request for change.

Re: JScript Panel

Reply #1495
Yes, I'm using DarkOne as well. The original one, which I heavily modified, since I did not like the flat view of Mod2.
Have you publicly shared your modifications somewhere? I am very interested in them.

Many, many years ago, Tedgo himself helped me add display of Dynamic Range info to DarkOne original.

Re: JScript Panel

Reply #1496
Yes, I'm using DarkOne as well. The original one, which I heavily modified, since I did not like the flat view of Mod2.
Have you publicly shared your modifications somewhere? I am very interested in them.

Many, many years ago, Tedgo himself helped me add display of Dynamic Range info to DarkOne original.


:-)

Let's not hijack this topic. I'll post a separate topic.
I did not rip anything from the original skin and with some mouseclicks you can have have the same view except for the square buttons.

Re: JScript Panel

Reply #1497
1) Is there a plman.ReplayGain (like plman.PlaybackOrder) variable available to reflect current state of replaygain?
2) Is a function on_replaygain_changed(new_index) available (like on_playback_order_changed(new_index))?

RTFM.

plman is Playlist Manager so it won't be there. A good place to look would be fb since it's related to fb2k core settings.

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

fb.ReplaygainMode is a readable and writable property https://jscript-panel.github.io/docs/flags/#replaygainmode

Callback: https://jscript-panel.github.io/docs/callbacks/foobar2000/#on_replaygain_mode_changednew_mode

Why do I even bother writing documentation? :/

Even starting a search with on_repl would have found it...


Re: JScript Panel

Reply #1498
3.4.7 no component changes. Changes to samples only - I've taken FontAwesome out back and shot it.

Segoe Fluent Icons is now used across all samples. Windows 11 users do nothing -you already have it. Everyone else can grab it here...

https://download.microsoft.com/download/8/f/c/8fc7cbc3-177e-4a22-af48-2a85e1c5bffb/Segoe-Fluent-Icons.zip

It's something I have to install myself. I despise 11 and won't be going near it any time soon.  :P

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

Existing users of included button samples need to re-import. Even if you used the previously optional support for Fluent Icons, scripts in panels still need updating.

Re: JScript Panel

Reply #1499
Trying to use JSPlaylist with version 3.4.7 on fb2k 2.1.2

Components loaded in: 0:00.029234
Configuration read in: 0:00.004870
foobar2000 v2.1.2 x86 [portable]
Watching: M:\music
Playlist #0 loaded in 0:00.016248
JScript Panel 3.4.7 (JS Playlist by Br3tt aka Falstaff)
JavaScript runtime error
Invalid procedure call or argument
File: N:\foobar2000\profile\user-components\foo_jscript_panel3\samples\jsplaylist\main.js
Line: 1378, Col: 2