I do not know if I am allowed to throw my link in here, but I try:
http://www.milasupport.dk/randomize-playlists-in-winamp/
/Michael Larsen - DK
On 15 Dec., 22:25, "Matt Stevens" <m...@alloysoft.com> wrote:
> I'd say stick with what you're using until it stops working for you. They're
> all great media players.
>
> --
If you just want to randomize playback without keeping the playlist to a specific size you should be able to do this by toggling Winamp's shuffle function with the playlist loaded (so you wouldn't need to restart Winamp). Doing that directly through the Winamp API could be accomplished like so:
#define IPC_SET_SHUFFLE 252
// hwnd is a handle to the Winamp window
SendMessage(hwnd, WM_WA_IPC, 0, IPC_SET_SHUFFLE);
SendMessage(hwnd, WM_WA_IPC, 1, IPC_SET_SHUFFLE);
You can also do this through Signal by sending two HTTP POSTs to http://x.x.x.x:3569/xml:
xml=<SetShuffleStateRequest><shuffleState>false</shuffleState></SetShuffleStateRequest>
xml=<SetShuffleStateRequest><shuffleState>true</shuffleState></SetShuffleStateRequest>
--
Matt Stevens
www.alloysoft.com
Which playlist will it shuffle if i send the xml through signal - is
it the last selected one(i could eg. bookmark these xml-calls in
safir?) ?
It would be alot "cleaner" than having an homewritten program to do
this stuff.
/Michael Larsen - DK
On 20 Dec., 21:56, Matt Stevens <m...@alloysoft.com> wrote:
> Cool, thanks for sharing!
>
> If you just want to randomize playback without keeping the playlist to a specific size you should be able to do this by toggling Winamp's shuffle function with the playlist loaded (so you wouldn't need to restart Winamp). Doing that directly through the Winamp API could be accomplished like so:
>
> #define IPC_SET_SHUFFLE 252
> // hwnd is a handle to the Winamp window
> SendMessage(hwnd, WM_WA_IPC, 0, IPC_SET_SHUFFLE);
> SendMessage(hwnd, WM_WA_IPC, 1, IPC_SET_SHUFFLE);
>
> You can also do this through Signal by sending two HTTP POSTs tohttp://x.x.x.x:3569/xml:
>
> xml=<SetShuffleStateRequest><shuffleState>false</shuffleState></SetShuffleS tateRequest>
> xml=<SetShuffleStateRequest><shuffleState>true</shuffleState></SetShuffleSt ateRequest>
>
> --
> Matt Stevenswww.alloysoft.com
--
Matt Stevens
www.alloysoft.com
I learn constantly!!!
Thanks Matt
/Michael