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: WSH Panel Mod (Read 819244 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.


WSH Panel Mod

Reply #827
if this is your definition of working better, i really wouldn't like to see what the old script does.... 

Code: [Select]
Scripting Engine Initialization Failed (GUID: D93FDE28-5275-4CA8-BB70-F5919C25C5AF, CODE: 0x80020101)
Check the console for more detailed information (Always caused by unexcepted script error).

Error: WSH Panel Mod (GUID: D93FDE28-5275-4CA8-BB70-F5919C25C5AF): Microsoft JScript runtime error:
'g_textcolor' is undefined
Ln: 67, Col: 5
<source text only available in compile time>


and this isn't the place to post scripts. this thread is for component help, bug reports and feature suggestions. scripts should be posted here....

http://www.hydrogenaudio.org/forums/index....showtopic=77883

but you might want to do some more testing first. 

WSH Panel Mod

Reply #828
if this is your definition of working better, i really wouldn't like to see what the old script does.... 

Code: [Select]
Scripting Engine Initialization Failed (GUID: D93FDE28-5275-4CA8-BB70-F5919C25C5AF, CODE: 0x80020101)
Check the console for more detailed information (Always caused by unexcepted script error).

Error: WSH Panel Mod (GUID: D93FDE28-5275-4CA8-BB70-F5919C25C5AF): Microsoft JScript runtime error:
'g_textcolor' is undefined
Ln: 67, Col: 5
<source text only available in compile time>


and this isn't the place to post scripts. this thread is for component help, bug reports and feature suggestions. scripts should be posted here....

http://www.hydrogenaudio.org/forums/index....showtopic=77883

but you might want to do some more testing first. 


i know i know
since i'm a DUI fanboy i didnt include it for CUI
http://foobar-silk.googlecode.com/files/nf...0.1--script.txt here is the link for the fix

enjoy!
next time i'll post it in the other topic!

WSH Panel Mod

Reply #829
@T.P Wang:

bug report (or help required if i use it in the bad way):

i'm coding a playlist manager in WSH panel mod 1.3.2, and it seems that fb.RemovePlaylist(idx); doesn't work for idx = 0

fb.RemovePlaylist(0); give me a script error ... and i have at least one playlist created when i use it

---
id to delete=0
Error: WSH Panel Mod (GUID: 26A7BCC7-EE59-4150-A3EA-E1FFD07EE3F6): Erreur d'exécution Microsoft JScript:
Argument ou appel de procédure incorrect
Ln: 322, Col: 21
<source text only available in compile time>
---


any idea, could you try by yourself and fixing this problem please ?

Thanx by advance

 

WSH Panel Mod

Reply #830
I'm not sure, but I think you should use idx+1


WSH Panel Mod

Reply #832
ok, I was enumerating them with index+1 in comserver script so I thought that maybe in WSH they are numbered as in foobar (starting with 1), but then you used 0 probably because you knew that playlist indexing starts with 0
nevermind I guess it's WSH bug then because I can remove playlist(idx=0) with comserver succesfully

WSH Panel Mod

Reply #833
in my script, i use a variable and not 0 ! 0 was to explain the bug

T.P. please, help !!!

WSH Panel Mod

Reply #834
I confirm this bug! (I never tried to delete the first playlist, so I never noticed before...)

WSH Panel Mod

Reply #835
WSH Panel Mod 1.3.3 Uploaded:
Code: [Select]
v1.3.3
- ADD: Read only window.IsTransparent property.
- CHG: Add new parameter "no_load" to utils.GetAlbumArtAsync().
- FIX: Stub images won't be loaded since WSH Panel Mod 1.3.2.
- FIX: fb.RemovePlaylist(idx) doesn't work when idx == 0.


WSH Panel Mod

Reply #836
Thanks
Do you plan to add the enhancements made by DarkJedii to the "official" build?

WSH Panel Mod

Reply #837
THanks for the update TPWang!

@Falstaff: could you share your playlist manager panel? I am eager to see what we can do other than playlist tabs and playlist dropdown.

Thanks

WSH Panel Mod

Reply #838
WSH Panel Mod 1.3.3 Uploaded
...


Thanx a lot for the quick fix, it's ok now


Thanks
Do you plan to add the enhancements made by DarkJedii to the "official" build?


I think that T.P won't because the modification brought by DarJedii seems to be in conflict with the termes of the SDK License...


@carmenm:

it will be share with the release of my next config (release before the end of the skin contest open on Deviant Art, group Foo-Nation)

WSH Panel Mod

Reply #839
I found another bug:

This is a quote from interfaces.txt:
Code: [Select]
    // [Optional] multivalue_fields is a semicolon-separated list contains fields name which need to be treated as multivalue.
    // Usage: meta.UpdateFileInfoSimple("ARTIST", "Enigma", "GENRE", "Downtempo;Ambient", "GENRE");
    //     GENRE will be treated as a multivalue field. So GENRE[0] = "Downtempo", GENRE[1] = "Ambient
    void UpdateFileInfoSimple(field1, value1 [, filed2, value2 [,...] ] [, multivalue_fields]);


But it doesn't seem to work like that...

If I do
cmetadb.UpdateFileInfoSimple("COMMENT", "test 1;test 2", "COMMENT");
I get an error ("Subscript out of range")

If I do
cmetadb.UpdateFileInfoSimple("COMMENT", "test 1;test 2", "");
I get the same error

If I do
cmetadb.UpdateFileInfoSimple("COMMENT", "test 1;test 2");
COMMENT becomes "test 1" (first value); "test 2" (second value)

So this last case does what the first case should do, but how to store one value containing "test 1;test2"?

WSH Panel Mod

Reply #840
@T.P Wang

It seems on_playback_stop is not called at the end of file.

Code: [Select]
function on_playback_stop(reason) {
    fb.trace( "reason is " + reason );
}


This code won't output anything when a file is played.

WSH Panel Mod

Reply #841
You mean, when playback is continuing with the next file? Then playback is not stopped and the behaviour is correct.

WSH Panel Mod

Reply #842
^sorry but you are wrong. the function works fine for me. it should output 2 as the reason....

edited because i'm a numpty.

WSH Panel Mod

Reply #843
No, you are wrong 
on_plaback_stop() with the stop reason "starting_another" is only called, when you start the playback of a track, while currently another track is being played. It is not called, when the playback advances from one track (at the end of file) to the next inside a playlist.

WSH Panel Mod

Reply #844
oh, that's a bit embarrassing. apologies. 


WSH Panel Mod

Reply #845
Anyway, on_playback_stop should be called at the eof because the end is reached, and such a reason is specified.

WSH Panel Mod

Reply #846
It will be called, but eof here means, that no file for playing is available anymore, for example, when you reach the end of a playlist with default playback order. It doesn't mean end of each file.

WSH Panel Mod

Reply #847
Okay, this makes sense. I am writing a script to play the specified number of tracks, and the workaround is to use on_playback_new_track callback.

WSH Panel Mod

Reply #848
Is there an implementation of SetTimer() to draw smoother seekbars etc?