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

WSH Panel Mod

Reply #1675
it is now pixel perfect...



Code: [Select]
v1.6.1 Beta 5
- ADD: window.CreateToolTip now takes optional font name, font size (px) and
       style arguments. eg window.CreateToolTip("Segoe UI", 32, 1);
       Defaults of "Segoe UI", 16 and 0 are used if omitted. See docs\flags.txt
       for valid style values.
- ADD: plman.GetQueryItems(source_handlelist, query) returns an unsorted
       handle list. Consider using OrderByFormat, etc on the result
- ADD: plman.CreateAutoplaylist, plman.IsAutoPlaylist
       These behave the same as the "fb" methods which already exist.
- ADD: plman.ClearPlaylist(playlistIndex). Unlike fb.ClearPlaylist which
       clears the active playlist, this requires a "playlistIndex"
       argument.
- CHG: "Safe mode" is no longer an option.
- CHG: Tidy up samples.


https://github.com/19379/foo_uie_wsh_panel_mod/releases

WSH Panel Mod

Reply #1676
since the last change, the default tooltip font size was a bit big so i've reduced that...

Code: [Select]
v1.6.1
- ADD: window.CreateToolTip now takes optional font name, font size (px) and
       style arguments. eg window.CreateToolTip("Segoe UI", 32, 1);
       Defaults of "Segoe UI", 12 and 0 are used if omitted. See docs\flags.txt
       for valid style values.
- ADD: plman.GetQueryItems(source_handlelist, query) returns an unsorted
       handle list. Consider using OrderByFormat, etc on the result
- ADD: plman.CreateAutoplaylist, plman.IsAutoPlaylist
       These behave the same as the "fb" methods which already exist.
- ADD: plman.ClearPlaylist(playlistIndex). Unlike fb.ClearPlaylist which
       clears the active playlist, this requires a "playlistIndex"
       argument.
- CHG: "Safe mode" is no longer an option.
- CHG: Tidy up samples.


https://github.com/19379/foo_uie_wsh_panel_mod/releases






WSH Panel Mod

Reply #1682
thanks, it took me exponentially longer than any code changes i've made.

a few typos in interfaces.txt have just been fixed:

https://raw.githubusercontent.com/19379/foo.../Interfaces.txt

the component download has also been updated.

edit: a load more mistakes have been found and corrected.


WSH Panel Mod

Reply #1684
Code: [Select]
v1.6.3
- ADD: CalcTotalDuration() handle list method. returns the total in seconds.
- ADD: CalcTotalSize() handle list method. returns the total in bytes.
- ADD: utils.FormatDuration(seconds). returns a string like "3wk 2d 1:30:21"
- ADD: utils.FormatFileSize(bytes). returns a string like "7.9 GB"


https://github.com/19379/foo_uie_wsh_panel_mod/releases

they can be used in combination like this

Code: [Select]
var items = fb.GetLibraryItems();
fb.trace(utils.FormatFileSize(items.CalcTotalSize()));
items.Dispose();

WSH Panel Mod

Reply #1685
i assumed it's far faster than doing it myself in WSH with a loop on the handle list
so, that's a real good add, well done marc!

WSH Panel Mod

Reply #1686
well the function provided by the SDK also loops so i'm not sure if there is any performance benefit. still, it's nicer to have a one liner in our javascript.

WSH Panel Mod

Reply #1687
Hi, I'm not programmer, please help me with error code:
After some WSH mode update I have this error:
Code: [Select]
WSH Panel Mod ({970889CB-C7C8-4B6B-8307-E732076A7340}): Ошибка выполнения Microsoft JScript:
Объект не поддерживает это свойство или метод
File: <main>
Line: 760, Col: 3
<source text only available at compile time>
Sourse:
Spoiler (click to show/hide)
PEACE, Me.

WSH Panel Mod

Reply #1688
that script contains old functions no longer supported in this component. i do mention it in the readme but it's completely my fault for not providing a link to it from the releases page. sorry for the inconvenience.

https://github.com/19379/foo_uie_wsh_panel_...aster/README.md

you should use the official component because i'm not updating other people's scripts.



WSH Panel Mod

Reply #1689
no component changes... 

Code: [Select]
v1.6.1.2
- CHG: Large docs update to interfaces.txt and callbacks.txt


https://github.com/19379/foo_uie_wsh_panel_mod/releases


Hummm just give a look to the new interfaces.txt ....

ok, updating interfaces.txt is good, but many informations are now lost (or are harder to find maybe ... ?), for example, for many methods (for example, all the Queue methods!!!),
we have lost the kind of object returned in response and it is VERY BAD ... but maybe i have missed something so could you point me in the right way if it is r could you add all what is missing now in interfaces.txt ?

WSH Panel Mod

Reply #1690
that script contains old functions no longer supported in this component. i do mention it in the readme but it's completely my fault for not providing a link to it from the releases page. sorry for the inconvenience.

https://github.com/19379/foo_uie_wsh_panel_...aster/README.md

you should use the official component because i'm not updating other people's scripts.

Ok, I'm understand, but, I don't know who write this script, and can't write new one. I'm a medic. Mark, may be ... you look it, pleeeeees....
PEACE, Me.

 

WSH Panel Mod

Reply #1691
@falstaff, original docs...

Quote
// [1.5.0 Preview 2] New:
    IFbPlaybackQueueItem CreatePlaybackQueueItem();
    // Remove single item from playback queue
    void RemoveItemFromPlaybackQueue(index);
    // affectedItems: array of item indexes
    void RemoveItemsFromPlaybackQueue(affectedItems);
    void AddPlaylistItemToPlaybackQueue(playlistIndex, playlistItemIndex);
    void AddItemToPlaybackQueue(IFbMetadbHandle);
    uint GetPlaybackQueueCount();
    // returns an array of IFbPlaybackQueueItem instances.
    VBArray GetPlaybackQueueContents();
    // returns -1 on failure.
    int FindPlaybackQueueItemIndex(IFbMetadbHandle, playlistIndex, playlistItemIndex);
    void FlushPlaybackQueue();
    // This is actually the same as GetPlaybackQueueCount() > 0
    boolean IsPlaybackQueueActive();


it looks like i missed the bits in red so i'll add those.

Quote
Queue Methods:

plman.AddItemToPlaybackQueue(handle);

plman.AddPlaylistItemToPlaybackQueue(playlistIndex, playlistItemIndex);

plman.CreatePlaybackQueueItem();

plman.FindPlaybackQueueItemIndex(handle, playlistIndex, playlistItemIndex);
// returns -1 on failure

plman.FlushPlaybackQueue();

plman.GetPlaybackQueueContents();
// returns a VBArray. if using JScript, use .toArray() on the result.

plman.GetPlaybackQueueCount();

plman.IsPlaybackQueueActive(); (boolean)

plman.RemoveItemFromPlaybackQueue(index);

plman.RemoveItemsFromPlaybackQueue(affectedItems);
// affectedItems: array like [1, 3, 5]


i thought all the void stuff is meaningless to script writers.

edit: i found another bit of orphaned queue stuff elsewhere so i moved it. you can view the changes here...

https://github.com/19379/foo_uie_wsh_panel_...dff6430f0548e46

the full file is here:

https://raw.githubusercontent.com/19379/foo.../Interfaces.txt

WSH Panel Mod

Reply #1692
even if void, it's have to be written to avoid mistake, and putting response type before the method name would be better imho.

thank for consedering that points, interface doc must be reliable and fully described, once again imho

WSH Panel Mod

Reply #1693
maybe i'm biased but i think my updates are substantially easier to read and understand compared to the original docs. there are many more examples and tips. yes, some sections are sparse and that's because so was the original and i don't have personal experience with the methods so i'm not able to fill in the gaps. if people have issues with mine, they can download the old ones.

edit: a quick heads up.... fb.PlaybackOrder is getting dumped in the next update because we have plman.PlaybackOrder. it may be some time away as i won't release until i have something new to add as well.


WSH Panel Mod

Reply #1695
fun fact for the day: since i forgot to mention it any changelog, some recent update takes you to my github wiki page if you press  f1 or the help button when on the WSH panel mod preferences page.

https://github.com/19379/foo_uie_wsh_panel_...itor-Properties

that was imported from the original google code page.

WSH Panel Mod

Reply #1696
@ustas, i'll be releasing a new panel later which runs side by side with wsh panel mod so you can run any combination of old/new scripts you like without having to update them.





WSH Panel Mod

Reply #1697
@ustas, i'll be releasing a new panel later which runs side by side with wsh panel mod so you can run any combination of old/new scripts you like without having to update them.

Ok, thank you! Will wait for new old update! 
PEACE, Me.

WSH Panel Mod

Reply #1698
Since I've created my new JScript Panel component, I'm no longer going to be updating this. I'll leave the github repo up until the weekend for anyone who wants to fork/clone it. After that, I'll be posting the last version and source in the uploads forum.