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 script discussion/help (Read 1399755 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

WSH Panel Mod script discussion/help

Reply #3875
you obviously didn't replace the code properly or there is more than one instance of the old code which would report a different line number when it crashes.

if what i posted didn't work, all my own scripts would crash including this one which has 9 sub-menus.




WSH Panel Mod script discussion/help

Reply #3876
you obviously didn't replace the code properly or there is more than one instance of the old code which would report a different line number when it crashes.

if what i posted didn't work, all my own scripts would crash including this one which has 9 sub-menus.


Obviously, one line of code pasting is beyond me. 

Still crashes. I'll just revert back to the WSH panel mod that worked I guess.

WSH Panel Mod script discussion/help

Reply #3877
you can't just overwrite what was there with what i posted. it was an example and you must use the variable names/strings from the original script. anyway, sounds like going back to the original component is the best plan.

for anyone else...

old:
Quote
_menu.AppendMenuItem(MF_STRING | MF_POPUP, _child.ID, "Background");


new:
Quote
_child.AppendTo(_menu, MF_STRING, "Background");


the bits in red must be from the original script.

WSH Panel Mod script discussion/help

Reply #3878
Falstaff,

I'm getting an easily reproducible crash in CoverFlow with latest WSH mod from marc2003. Right clicking on the panel throws out error message below.

Code: [Select]
WSH Panel Mod (CoverFlow View v1.4.3 by Br3tt aka Falstaff >> http://br3tt.deviantart.com): Microsoft JScript runtime error:
Invalid procedure call or argument
File: <main>
Line: 3578, Col: 5
<source text only available at compile time>


i'll release an update soon

WSH Panel Mod script discussion/help

Reply #3879
marc2003: It crashed again. Well if it only crashes for me it doesn't matter. Maybe it has something to do with musicbrainz, as none of your other scripts crashes. I use now playing, similar, and allmusic review.

But did you have time to check this out? https://www.dropbox.com/s/rmz7hcy6dd1akf0/t.zip
Just want the text to update to f.e %artist% and be clickable, and then for the buttons in if statements to update when panel mode changes.
Probably did something in the wrong way there, but it works.

WSH Panel Mod script discussion/help

Reply #3880
i'm not looking at that. you commented out some of the stuff i put in for very good reason in to the last script.

as for the musicbrainz thing, i can prevent it crashing. it will just update the console saying fetched data may be incomplete. i'll add that later along with a dialog for AAD parameters.

edit: fix for musicrbrainz applied. just right click>Update script.

full download: https://dl.dropboxusercontent.com/u/2280132...sh/samples8.zip
docs: http://marc2003.x10host.com/intro

WSH Panel Mod script discussion/help

Reply #3881
Ok. Well I'm fully aware I don't know what I was doing. I was trying out many different ways to get the buttons to update correctly, and finally, that seemed to work. It didn't work with the other stuff in it, thought it had to do with the if-statement.
I hope it doesn't break anything? Then I will use that version and forget about the idea with clickable text which I thought would be a nice thing but it's fine with another button instead.
Thanks for the help anyways. You gave me enough before that I should probably be able to solve these things myself, it's just that it goes very slow and thought my questions would have easy answers (which I couldn't find with google).
Well if they don't, I understand you.

WSH Panel Mod script discussion/help

Reply #3882
I want to get now playing song's info from Wikipedia page like in your Wikipedia Bio script (ex:http://en.wikipedia.org/wiki/First_Time_(Lifehouse_song))
But i noticed that the title of Wikipedia page is not always the same (It's not %title% or %title% - %artist%)
But searching in Google  "%title% - %artist%" and getting first result from Wikipedia site always seems to work
Is this kind of thing possible ??

 

WSH Panel Mod script discussion/help

Reply #3883
the reason my wikipedia bio script gets the right page (for the most part) is because i use a 3rd party website (theechonest.com) which is built entirely around gathering information about music. that's also the reason why it's only available in english.

what you're thinking about should be possible. to actually do it, i suggest you google it.

WSH Panel Mod script discussion/help

Reply #3884
the reason my wikipedia bio script gets the right page (for the most part) is because i use a 3rd party website (theechonest.com) which is built entirely around gathering information about music. that's also the reason why it's only available in english.

what you're thinking about should be possible. to actually do it, i suggest you google it.

I was able to get the Wikipedia page URL editing  Mire777 Biography Photos script, so if it's not too much trouble for you
can you please tell me what functions to use/edit in your common8.js to parse this URL and getting it's text to a wsh panel.

WSH Panel Mod script discussion/help

Reply #3885
WSH CoverFlow updated!

[Change Log]
* 2015-02-22 : v1.5.0 >> updating repaint system + shading effect + now compliant with latest WSH Panel Mod version 1.5.7.1
[/Change Log]

link



WSH Panel Mod script discussion/help

Reply #3887
Falstaff
about this change in last version version of JSPlaylist: "type what your search now binded with group by pattern (not only artist by default)"

I can still only search for artist, not for album, even know %album% presents in default "group by" pattern. Maybe I'm doing something wrong - Im not sure

Maybe options to disable or enable typing search for "artist", "album", "title" individually would be better?
I want to search songs by typing its title, but dont want to group by title.

WSH Panel Mod script discussion/help

Reply #3888
@samithaj, i can't be bothered with the customising help any more. you're on your own if you want to hack away.

i'll still be supporting my scripts so if anyone wants me to squish bugs, they need to report them. and i'll still help people out with their own little code snippets so long as they ask precise questions about specific functions rather than vague concepts such as how do i make a script to.....


WSH Panel Mod script discussion/help

Reply #3890
marc2003 -

In one one of your older YF configs (one previous to current iirc) you had the ability to trigger a playlist menu via r-click on menu icon. Could that same r-click action call up a WSH panel in the same location? Not sure if that's possible but have an idea I'd like to explore if it can be done.

WSH Panel Mod script discussion/help

Reply #3891
Could that same r-click action call up a WSH panel in the same location?


i have no idea what you mean by this?? 

but what you can do is run any code/function you like. as the code is in the panel itself, it should be easy to enough to find and pick apart to see how it works.

WSH Panel Mod script discussion/help

Reply #3892
i have no idea what you mean by this??

Essentially replace...

Code: [Select]
function on_mouse_rbtn_up(x, y) {
    _menu = window.CreatePopupMenu();
    _menu.AppendMenuItem(MF_GRAYED, 9, "Playlists");
    for (i = 0; i < plman.PlaylistCount; i++) {
        _menu.AppendMenuItem(MF_STRING, i + 10, (i == plman.ActivePlaylist ? ">" : "") + plman.GetPlaylistName(i) + " (" + plman.PlaylistItemCount(i) + ")");
    }
    
etc.


Popup menu with a WSH panel in its place.


WSH Panel Mod script discussion/help

Reply #3894
I personnaly understand he wants a WSH panel that mimics a popup menu when you right click to a location in the parent WSH panel...

WSH Panel Mod script discussion/help

Reply #3895
I personnaly understand he wants a WSH panel that mimics a popup menu when you right click to a location in the parent WSH panel...


Precisely. Though thinking about it, it may be better served with a separate splitter/button combo instead. The idea was to maybe transplant your WSH playlist manager (from DUITunes) into a panel there to free up one of the spots on another switchable panel elsewhere.

Guess I'll look at some other configs to see how they implemented 'floating' panels instead.

WSH Panel Mod script discussion/help

Reply #3896
marc2003 -

In one one of your older YF configs (one previous to current iirc) you had the ability to trigger a playlist menu via r-click on menu icon. Could that same r-click action call up a WSH panel in the same location? Not sure if that's possible but have an idea I'd like to explore if it can be done.


can be done easily but with a great restriction compared to popup menus! popup menu can be display out of the window, on "wsh-popup panel" won't, so can be great for some specific usage but not always possible
for example, it's great to adjust volume, or a rating engine ...

WSH Panel Mod script discussion/help

Reply #3897
Guess I'll look at some other configs to see how they implemented 'floating' panels instead.


i'm pretty sure they use panel stack splitter to position panels over each other. i've never experimented with that myself. you can of course mimic any behaviour you like in a single panel if it's big enough. the problem with the example you posted previously was that it was a single button in a panel something like 24x24px in size.

also, samples updated. i fixed a silly bug that no one has noticed/encountered for 5 years...

any script that uses an input box would have it's existing value mangled if it contained double quotes and the user clicked cancel. i guess no one has done this? 

anyway, it can be fixed by right clicking>Update script. mangled values would have to be fixed manually though. holding shift, right clicking the panel>properties and deleting the offending value would reset the default.

WSH Panel Mod script discussion/help

Reply #3898
Guess I'll look at some other configs to see how they implemented 'floating' panels instead.


i'm pretty sure they use panel stack splitter to position panels over each other. i've never experimented with that myself. you can of course mimic any behaviour you like in a single panel if it's big enough. the problem with the example you posted previously was that it was a single button in a panel something like 24x24px in size. 


That's what's happening I think. MNLT (config) has a playlist manager triggered by a button and it's just placed strategically in the layout. It shouldn't be too hard to mimic that.

EDIT: I think I can hack that into my main config now that Ive poked around with it a little.

http://i.imgur.com/9YJlF7u.png

WSH Panel Mod script discussion/help

Reply #3899
are you not using JSplaylist? that has a playlist manager built in. just click the middle mouse button to toggle it on/off.