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 1403874 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

WSH Panel Mod script discussion/help

Reply #775
Error: WSH Panel Mod (GUID: EAA8D0BB-9EB2-49F1-A631-2B3491B5D26A): Microsoft JScript runtime error:
Object doesn't support this property or method
Ln: 72, Col: 13
<source text only available in compile time>

WSH Panel Mod script discussion/help

Reply #776
i'm confused. what you posted shouldn't make the script crash???

can you post the contents of

%appdata%\foobar2000\wsh_settings\autoplaylists

(or foobar dir\wsh_settings\autoplaylists if running portable mode)

anyway, i've uploaded a new script that shouldn't crash (but it won't run the query either )


WSH Panel Mod script discussion/help

Reply #778
It's not giving me a script error anymore, but now am just receiving the message: "There was a problem executing that query. Please check your name/query/sort syntax."

As far as I know there should be nothing wrong with that query.

WSH Panel Mod script discussion/help

Reply #779
i'm stumped- obviously there's nothing wrong with that text..... :/

what OS are you on?

irrelevant, i've just tested on windows 7 and XP.


WSH Panel Mod script discussion/help

Reply #781
are you running the latest WSH panel mod?



WSH Panel Mod script discussion/help

Reply #783
glad you sorted it.

however i've just uploaded a new version which breaks compatibility with the one i uploaded last night... 

http://cid-649d3bfeaf541fbb.office.live.co...ide/samples.zip

in the old script i was using !! to separate and store stuff internally but i then i thought it could be possible that people might use that in their playlist names or queries which would then break it. i've now changed it to a ¬ instead which hopefully no one will be using.

(%appdata%\foobar2000\wsh_settings\autoplaylists can be opened in notepad and find/replace can be performed with !! and ¬)

WSH Panel Mod script discussion/help

Reply #784
Marc, you might use ASCII unit and field delimiters instead http://en.wikipedia.org/wiki/Delimiter . Won't ever run into problems theoretically.

 

WSH Panel Mod script discussion/help

Reply #786
autoplaylists updated again. same link as above.

-added sanity checking to prevent spawning of multiple text input windows and deletion of favourites when they are being edited.

WSH Panel Mod script discussion/help

Reply #787
another update for autoplaylists

-now with scrolling support. mouse wheel is quickest but there are clickable buttons also....




WSH Panel Mod script discussion/help

Reply #788
your autoplaylists script looks beautiful, but it creates a new playlist every time i click the "execute" button. is there a way to use the autosend playlist instead?

WSH Panel Mod script discussion/help

Reply #789
do you mean send to the same playlist if one with the same name already exists? i'm not sure if that's possible although i should be able to delete old one before creating the new one. i'll have a play around....

WSH Panel Mod script discussion/help

Reply #790
new version of autoplaylists

-added restore menu for deleted items. this only remains for the current session. also, anything that causes the script to re-initialise (such as cut/pasting the panel in layout editing mode or editing the script itself) will lose the history.
-added option to remove playlists with duplicate names (it's on by default, use the context menu to turn it off)

WSH Panel Mod script discussion/help

Reply #791
wow, thanks! good solution

i have a question for anyone who has a moment.

i'm trying to replace my standard toolbar with a wsh toolbar.
i managed to modify the SimpleThemedButton sample to call functions from the main menu, but i'm wondering if it's possible to do something similar with the context menu?

i want a button that will run "ReplayGain/Scan selection as albums (by tags)" on the selected items. any hints on how to accomplish this would be appreciated

WSH Panel Mod script discussion/help

Reply #792
also marc2003, there is a script you published here, but it doesn't work with the lastest version of wsh_panel_mod.
http://www.hydrogenaudio.org/forums/index....mp;#entry685807

Microsoft JScript runtime error:
'settings_path' is undefined
Ln: 14, Col: 1


can you help me to fix it?

thanks again!

WSH Panel Mod script discussion/help

Reply #793
replace lines 2&3 with

Code: [Select]
// @import "%fb2k_profile_path%marc2003\common.js"
// @import "%fb2k_profile_path%marc2003\tooltip_buttons.js"

WSH Panel Mod script discussion/help

Reply #794
thank you!


WSH Panel Mod script discussion/help

Reply #796
although it is possible to fetch the item count for a given playlist i won't implement it because it could be too misleading. let's say i modify an active autoplaylist with a different query, you wouldn't want the favourite with the old query saved to show this new item count.


WSH Panel Mod script discussion/help

Reply #798
autoplaylists updated

-mouse wheel bugfix
-new option to add favourites to beginning or end of list
-new option to do nothing or execute query when adding/editing favourites

WSH Panel Mod script discussion/help

Reply #799
Marco, i seem to be having problems with autoplaylist. I just installed the latest autoplaylist.txt, and all i am getting is a blank playlist.
This is how i created the playlist:

Name: Loved Tracks
Query: %LASTFM_LOVED% IS 1
Sort: None

I am on windows xp, and i have the latest WHS panel.