Skip to main content

Topic: JScript Panel (Read 33392 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • marc2003
  • [*][*][*][*][*]
  • Developer
Re: JScript Panel
Reply #250
Just be aware the new script doesn't have top tracks/albums. It only has similar artists/charts.

And yes, the API key is included on purpose. I would have given instructions on how to use your own if I didn't!

Re: JScript Panel
Reply #251
Just be aware the new script doesn't have top tracks/albums. It only has similar artists/charts.
Actually, these are the only features that I'm using =)
And yes, the API key is included on purpose. I would have given instructions on how to use your own if I didn't!
I thought it might be so, but better safe than sorry...

Re: JScript Panel
Reply #252
marc2003
Please return, if possible :
on_tooltip_custom_paint()
thnx!

  • marc2003
  • [*][*][*][*][*]
  • Developer
Re: JScript Panel
Reply #253
Nope, that is not coming back. Look at the extra parameters you can pass to window.CreateTooltip if you want custom font/size/style.

Re: JScript Panel
Reply #254
On_tooltip_custom_paint ()
allows  to make the hint still.
Without this function - it is impossible, moves ..

  • marc2003
  • [*][*][*][*][*]
  • Developer
Re: JScript Panel
Reply #255
It appears in the editor because I forgot to update the "autocomplete" file at the same time I removed it. I realised this mistake back in March.

https://github.com/19379/foo-jscript-panel/commit/d45bcf5358ad4f11b8bfcabb0b146f07b14dce4b

You can save this updated file in your component folder - overwriting the existing file.

https://raw.githubusercontent.com/19379/foo-jscript-panel/master/component/interface.api

If you don't like the change, use WSH panel mod as before or even WSH panel mod PLUS.
  • Last Edit: 26 April, 2017, 07:52:24 PM by marc2003

  • marc2003
  • [*][*][*][*][*]
  • Developer
Re: JScript Panel
Reply #256
Code: [Select]
v1.2.1
- FIX: Fix bug where the playing item handle was never sent to the
       "on_playback_edited" callback even though the docs said it would.
- FIX: Tidy up docs and auto-complete hints for "on_metadb_changed"
       and "on_selection_changed". Specifically, "on_metadb_changed" always
       receives a "handle list" and never a "handle" as the first argument.
       "on_selection_changed" never receives a "handle" argument. This behaviour
       is consistent with WSH panel mod having the "v1.4" @feature preprocessor set
       as documented here:
       https://git.io/v9cVw
       https://git.io/v9cVD

https://github.com/19379/foo-jscript-panel/releases
  • Last Edit: 28 April, 2017, 05:01:32 PM by marc2003

  • Jailhouse
  • [*][*][*]
Re: JScript Panel
Reply #257
Check for updated components gives me, "No updates are available at this time."

It's only been a bit less than an hour since your post here. How long does it generally take before fb2k finds a new version?

  • marc2003
  • [*][*][*][*][*]
  • Developer
Re: JScript Panel
Reply #258
If you'd visited the components site, you'd see I forgot to upload it. But it's there now!

edit: just had to re-upload the files because of a typo in changelog.  :-[
  • Last Edit: 28 April, 2017, 05:07:22 PM by marc2003

  • Jailhouse
  • [*][*][*]
Re: JScript Panel
Reply #259
One of those days, eh? But no harm done; after all, it took me three days to notice that the last version had been uploaded. In comparison, my update today felt like getting it instantaneously.

  • KoO
  • [*]
Re: JScript Panel
Reply #260
@marc2003
On the subject of Foobar on Linux..
Been tiring to get jscript 1.2.1 to run jsplaylist-mod and Library Tree 1.3.3 both just crash.

After i run these commands I get this for both

sh winetricks gdiplus_winxp
wine cmd.exe /c echo '%ProgramFiles%' returned empty string, error message "wine: WINEARCH set to win32 but '/home/koo/.wine' is a 64-bit installation."

sh winetricks wsh57 fontsmooth=rgb msscript ie8
wine cmd.exe /c echo '%ProgramFiles%' returned empty string, error message "wine: WINEARCH set to win32 but '/home/koo/.wine' is a 64-bit installation."

---------------------------------------------------------
I have everything installed as stated above..
wine 2.7
MX-16 x64 Linux =Debian
Foobar 1.3.15 full installed with wine.(Tried my Foo portable from windows scripts crash)
architecture i386 and installed

All the standard components for foo run fine UI,NG,Albumlist and so on...

Using wine is new to me the only reason I have it installed is to run FooBar.I no interest installing anymore windows programs in wine.If foobar was native linux I would not need wine at all.I have tried most of the linux media players. Foo is God

If you can help all good if not I and live with a standard Foobar columns UI...

Thanks to You and all the Foo modder and scriptwriters out their...






  • marc2003
  • [*][*][*][*][*]
  • Developer
Re: JScript Panel
Reply #261
Try deleting your .wine folder and running winecfg again. It looks like you may have used an existing terminal window that was already open when you edited your .bashrc file with export WINEARCH=win32

  • KoO
  • [*]
Re: JScript Panel
Reply #262
@marc2003
Thanks very much for the reply
.Will do later tonight..

Have you ever had anything to do with DeadBeef ?
If that player had and Album List & Library Tree.X
It is by far the best Linux media player.{That my opinion anyway}

Foo is God

  • Viewmax
  • [*]
Re: JScript Panel
Reply #263
I need two custom buttons for my foobar2000. One of them to set volume to -10db and another button to set volume to -30db.
Is it possible with this component? I'm not developer at all :(

P.S.: Didn't know where to post, so I got reply here https://hydrogenaud.io/index.php/topic,110516.new.html
  • Last Edit: 17 May, 2017, 07:47:34 AM by Viewmax

  • marc2003
  • [*][*][*][*][*]
  • Developer
Re: JScript Panel
Reply #264
Code: [Select]
v1.2.2
- ADD: Add new "on_main_menu" callback. 10 main menu items have been created
       meaning you can now bind them to global keyboard shortcuts, standard
       toolbar buttons, etc and have them run your own custom code. See
       docs\callbacks.txt

From callbacks.txt

Code: [Select]
function on_main_menu(index) {}
/*
On the main menu>File>JScript Panel, there are 10 menu items and whichever number
is selected is sent as the "index" to this callback. Being main menu items now means you
can bind them to global keyboard shortcuts, standard toolbar buttons, panel stack splitter
buttons, etc. Remember to think carefully about where you use this code as you probably only
want it to run once and so don't include it in common files and scripts where you might have
multiple instances. Also, you should avoid sharing scripts containing this code so as not
to conflict with what other users may already be using.
Example:

function on_main_menu(index) {
switch (index) {
case 1: // triggered when File>Jscript Panel>1 is run
do_something();
break;
case 2: // triggered when File>Jscript Panel>2 is run
do_something_else();
break;
}
}
*/

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

Also available on the official components site or updating through foobar itself.
  • Last Edit: 18 May, 2017, 02:08:24 AM by marc2003