View Full Version : How to make some playlists default shuffle, others not?
Ron
October 13th, 2002, 12:55 PM
The good thing about Girder is, that although it is difficult for beginners, it can do just about everything except drive my car, but I am sure that Ron will develop a plug-in for that soon...
Hehehehe, yeah I have a early alpha version that can drive on the freeway, anyone care to test ? 8)
Mark F
October 13th, 2002, 12:55 PM
Every GVMS command is an if/then/else. The last statement is evaluated to 0 or non-0 and the commands are executed like file exist (the top one is for non-0 and the bottom one is for 0).
Check out the on-line help (http://www.girder.nl/help/registers.php) for the GVMS.
Your solution will be to use a final statement like:
reg1<90000;
MMcM
October 13th, 2002, 12:55 PM
Assume that Winamp is running already, perhaps in tray icon mode.
Assume that you know in Girder the name of the file and whether you want to shuffle or not. How this comes to be depends on your approach. Perhaps you used different commands from Irman. Perhaps the files are in different folders and you used GVMS to check the name. If you haven't figured out that bit yet, then I guess the first question is how do you pick a playlist via the remote? As I said, assume you know.
To change the Shuffle setting, use the SendMessage plug-in. Target: Class Name Winamp v1.x and Executable winamp.exe. Settings: Message Number 1024 (WM_WA_IPC), wParam 1 for on / 0 for off, lParam 252 (IPC_SET_SHUFFLE).
To send the filename, use the CopyData plug-in. Target the same. Settings: dwData 100 (ICP_PLAYFILE) and lpData the filename ([variable] presumably).
To play, use the Command built-in action. Target as ever. WParam 40045 (WINAMP_BUTTON2) and LParam 0.
wom
October 13th, 2002, 12:55 PM
Here's what I want to do: I am using my computer as a remote controlled jukebox (Girder, Irman, Winamp). For each Album I have a playlist (extended m3u). For each genre (like piano classics), I also have a playlist. When I call up the album playlists, I want them to be in normal serial mode. When I call up the genre playlists, I want them to be shuffled.
Any ideas how I could achieve this? :o
wom
October 13th, 2002, 12:55 PM
Wow-I am impressed! I will try this out later this week and will surely get back! Many thanks already!
wom
October 13th, 2002, 12:55 PM
Assume that you know in Girder the name of the file and whether you want to shuffle or not. How this comes to be depends on your approach. Perhaps you used different commands from Irman. Perhaps the files are in different folders and you used GVMS to check the name. If you haven't figured out that bit yet, then I guess the first question is how do you pick a playlist via the remote? As I said, assume you know
@MMcM: I just tried the shuffle send message command and it works perfectly-now on to the next step: I am using Numbuild to call up my playlists which all have the following format "wom99999.m3u" where "99999" is a five digit number. Numbuild works fine, it even checks if the file exists to avoid error messages.
The normal (non shuffle) playlists have numbers that start with a "0", shuffled playlists (playlist I want to play in shuffle mode) start with a "9". So "wom04324.m3u" would be a normal album, whereas "wom90025.m3u" would be a genre collection that I want to be played back in shuffle mode.
You mentioned GVMS which I am not familiar with, to check the name. How would I go about checking if the filename has indeed a "wom9.....m3u" and then set it to shuffle accordingly? :roll:
This would solve a big big problem that I am trying to solve. I'd be really happy if MMcM or anybody else could help me. Thanks! :wink:
wom
October 13th, 2002, 12:55 PM
Hmmm, I just thought of a possible solution... Since NumBuilder saves the number within the playlist file in reg1, all I have to do is to check if reg1<90000. If no then set to shuffle, else no shuffle.
BUT: How can I use an IF/THEN clause in girder? I know it works for windows and files but for variables? :-?
wom
October 13th, 2002, 12:55 PM
Yesssssssssss! That does the job splendidly!
Considering the fact that quite a few folks on other forums have told me that this wouldn't work, I am quite happy with my little solution. And it's simple, too. 8)
The good thing about Girder is, that although it is difficult for beginners, it can do just about everything except drive my car, but I am sure that Ron will develop a plug-in for that soon...
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.