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

Re: JScript Panel

Reply #200
Through dozens of test sessions I tried to find the exact triggers to the bug.
I could not reproduce it on Windows 10 Enterprise x64 build 10586.713. It might be caused by different version of Windows or 3rd party software.
Test theme:
Spoiler (click to show/hide)


Re: JScript Panel

Reply #201
I could not reproduce it on Windows 10 Enterprise x64 build 10586.713. It might be caused by Windows or 3rd part software.
Spoiler (click to show/hide)
Oops, I was a bit speculative, I can't reproduce it on a fresh install.
UPDATE: The bug occurred after updated to 14393.576 but suddenly disappeared after a forced reboot.

JScript Panel Beta1 V1.2.0

Reply #202
1)Just installed V1.2.0 Beta1 and noticed that in \samples\complete\js, playback buttons is missing. Any reason why this sample was removed (I used the V1.1.7 sample, changed the icons, & added a few more buttons as a sort of control panel for my foobar layout)?
2) Maybe a silly question, but I have to ask: Have you thought about/is is "possible" to separate JScript panel from foobar & make it a standalone program?  I am using using your code to learn JavaScript, understand windows & other non-foobar stuff.  It would be really cool to allow folks to write JScript programs which can create a window & use your "friendly" APIs without having to learn C++.
3)Thanks for the js_panel_window.cpp - I had no idea you made your source code available.  I don't "speak" C++, but this answers many questions I had about the callbacks.



Re: JScript Panel

Reply #203
1) It was never in the \js folder. It's in the parent folder along with all the other samples.
2) Nope. Perhaps look at something like autoit..  https://www.autoitscript.com/site/autoit/
3) Well it's not really my code. Someone else wrote 99% of it. I just maintain it since they abandoned it years ago.

Re: JScript Panel

Reply #204
@marc2003
Quote
It was never in the \js folder
:-[ Sorry, I renamed your sample to .js so I could import it during the preprocessor & use Notepad++ to see the code better

Is there a better/easier way to write/debug scripts? Currently, I have a foobar widow with like 20 JScript panels, each having different code.
I use Notepad++ to edit the code, then go to the foobar panel with the changed code, right-click & select reload to see what I messed up.
Is there a way to sort of pre-interpret the code for stupid mistakes (missing }, ; , etc) 1st, without having to reload the JScript panel

Re: JScript Panel

Reply #205
You can get Notepad++ to highlight .txt files like .js files. It also makes the docs easier to read. Go to Settings>Style Configurator and select Javascript in the left column. Now add txt to the user ext: box.




Re: JScript Panel

Reply #206
Thanks for the Notepad++ tip!
So do you develop/debug your own scripts using the 1."Edit code in notepad++", 2,"Reload JSctipt Panel in foobar" method?

Re: JScript Panel

Reply #207
It turns out I have missed one more step: go to taskbar settings, set combine taskbar buttons option to combine when taskbar is full
Alternatively add this to registry and restart the explorer:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"TaskbarGlomLevel"=dword:00000001

That's it! I could reproduce the bug also in build 14393.0
It is easier to trigger it when
沢井美空  -  TVアニメ「キルラキル」EDテーマ -「ごめんね、いいコじゃいられない。」  -  01 : ごめんね、いいコじゃいられない。  -  2013
is used for both gdi text and window title

Re: JScript Panel

Reply #208
Code: [Select]
v1.2.0 Beta 2
ADD: If your computer has IE9 or later installed, newer ECMAScript5 features
     are now available. Many thanks to TheQwertiest for discovering how to do this.
CHG: The "Script engine" option has been removed from the "Configuration" window.
     The newer Chakra engine is always used if available but will fall back to
     JScript if not.
ADD: utils.version reports the component version. See docs\interfaces.txt.
CHG: Minor tweaks to Configuration window.
FIX: Update samples\jsplaylist-mod so it works with Chakra engine. Thanks to zeremy
     for reporting.
FIX: A previous window.RepaintRect bug reported by Wilb has now been fixed.
FIX: Zap a few more compiler warnings.

Using the Chakra engine may reveal previously unknown bugs - that's why this is a beta!

Some of the newer ECMAScript5 features are documented here: https://msdn.microsoft.com/library/ff974378.aspx#_ecmascript

As mentioned in the script thread, I've updated Falstaff/Br3tt's JS Smooth scripts here: https://github.com/19379/JS-Smooth-Scripts-By-Br3tt

https://github.com/19379/foo-jscript-panel/releases

 

Re: JScript Panel

Reply #209
Could you add the console to the configuration window? Like wsh plus. That would be more convenient.

Re: JScript Panel

Reply #210
Nope. There is nothing wrong with the existing Console window/panels.

Re: JScript Panel

Reply #211
You can get Notepad++ to highlight .txt files like .js files. It also makes the docs easier to read. Go to Settings>Style Configurator and select Javascript in the left column. Now add txt to the user ext: box.



The original docs from Wang.T.P is in Java syntax. If you referred to the first line of `interface.txt` you would find the format settings there.
A rose will bloom, it then will fade.

Re: JScript Panel

Reply #212
Could you add the console to the configuration window? Like wsh plus. That would be more convenient.

I just think that JS Panel does not need to be the same with WSH Panel Plus....
Marc seems to make it simple and I agree it's good.
A rose will bloom, it then will fade.

Re: JScript Panel

Reply #213
v1.2 has been released - no changes from Beta2 except there is no expiration.

Code: [Select]
ADD: If your computer has IE9 or later installed, newer ECMAScript5 features
     are now available. Many thanks to TheQwertiest for discovering how to do this.
CHG: The "Script engine" option has been removed from the "Configuration" window.
     The newer Chakra engine is always used if available but will fall back to
     JScript if not.
ADD: utils.version reports the component version. See docs\interfaces.txt.
CHG: Minor tweaks to Configuration window.
FIX: Update samples\jsplaylist-mod so it works with Chakra engine. Thanks to zeremy
     for reporting.
FIX: A previous window.RepaintRect bug reported by Wilb has now been fixed.
FIX: Zap a few more compiler warnings.

Some of the newer ECMAScript5 features are documented here: https://msdn.microsoft.com/library/ff974378.aspx#_ecmascript

As mentioned in the script thread, I've updated Falstaff/Br3tt's JS Smooth scripts here: https://github.com/19379/JS-Smooth-Scripts-By-Br3tt

https://github.com/19379/foo-jscript-panel/releases

Re: JScript Panel

Reply #214
It turns out I have missed one more step: go to taskbar settings, set combine taskbar buttons option to combine when taskbar is full

It is easier to trigger it when
沢井美空  -  TVアニメ「キルラキル」EDテーマ -「ごめんね、いいコじゃいられない。」  -  01 : ごめんね、いいコじゃいられない。  -  2013
is used for both gdi text and window title

Still could not reproduce on 10586.713 even with your additional changes to scenario :\
Most likely it is a MS bug, but I don't have the latest Win10 ISO on hand, so I can't test it thoroughly.

Re: JScript Panel

Reply #215
Where can I find 1.1.7 relese? With 1.2 my foobar is unstable and I want to try older version of  JScript Panel to check.


Re: JScript Panel

Reply #217
Where can I find 1.1.7 relese? With 1.2 my foobar is unstable and I want to try older version of  JScript Panel to check.
https://github.com/19379/foo-jscript-panel/releases
Ther's no foobar component only source code, I'm not familiar with compiling etc. Can someone uplod 1.1.7 foobar component? Thanks in advance.

Re: JScript Panel

Reply #218
Well I don't have any old versions lying around and I don't have Visual Studio installed at the moment.

Can you post an example of a script you're having problems with? By "unstable", do you mean script errors (Aw, crashed) or something a lot more serious like affecting/crashing foobar itself?

edit: if you really must go back, this theme contains v1.1.6

http://tedgo.deviantart.com/art/DarkOne4Mod-v1-637189138

Using 7-zip, browse inside the 7z file then inside the .bck file within.

Re: JScript Panel

Reply #219
Well I don't have any old versions lying around and I don't have Visual Studio installed at the moment.

Can you post an example of a script you're having problems with? By "unstable", do you mean script errors (Aw, crashed) or something a lot more serious like affecting/crashing foobar itself?

edit: if you really must go back, this theme contains v1.1.6

http://tedgo.deviantart.com/art/DarkOne4Mod-v1-637189138

Using 7-zip, browse inside the 7z file then inside the .bck file within.

Thanks!
My foobar is highly customized so maybe jscript panel has some conflict in it.
It hangs during installation of jscript panel and hangs when I'm closing foobar either.

But I'm little confused because today is working almost fine. Anyway will try 1.1.6 version and will post how it's behave on it.


Re: JScript Panel

Reply #221
Thanks for your help.

Problem with my foobar is probably coincidence and JScript Panel is fine. Freezes occurs randomly while closing foobar (not every time, rather rarely). I'm thing it's related to buffer or disk write/read processes ... perhaps disk fault.

Re: JScript Panel

Reply #222
I suddenly started getting this error though nothing (neither foobar nor script) was modified

Quote
JScript Panel (Last.fm Artist Info/User Charts/Recent Tracks by marc2003)
JavaScript runtime error:
Unable to get property 'innerText' of undefined or null reference
File: C:\Users\username\AppData\Roaming\foobar2000\js_marc2003\js\list.js
Line: 695, Col: 9
<source text only available at compile time>

Updated to 1.2 and another error started appearing too
Quote
JScript Panel (JS Smooth Browser v20151114-1630-340 by Br3tt aka Falstaff >> http://br3tt.deviantart.com)
JavaScript compilation error:
Syntax error
File: C:\Users\RivaGe\AppData\Roaming\foobar2000\js_br3tt\jssb\js\JScommon.js
Line: 540, Col: 8
    }; else {

Confused about the first error, why would list.js be missing innertext if I haven't touched it? Any solutions? :(

Re: JScript Panel

Reply #223
1) Well I don't support that script any more but I think if you scrobble something using the same account you're viewing for the charts, it should prevent that error.

2) This goes to show no one reads the download page.... go back and look again.

https://github.com/19379/foo-jscript-panel/releases

Re: JScript Panel

Reply #224
Wow haha my bad, I skimped through the changelog and as always I didn't find any familiar words I just downloaded it without reading lower. Thanks and sorry :)

btw shame about last.fm script, I am using same account and this error occurs.