INTERACT FORUM
More => Old Versions => Media Center 11 (Development Ended) => Topic started by: sapnho on August 02, 2003, 03:26:46 am
-
I am in the process of changing my jukebox control from Winamp to MC using Girder. In Winamp there was a command to set the function to SHUFFLE. In MC I only found a command to toggle between shuffle and linear.
Is there a command in MC/Girder to SET it to SHUFFLE?
-
Not that I know of, but there are several commands to reshuffle the Playing Now without toggling the shuffle mode. Check out
ReShuffle-Jump to PN
ReShuffle-No Jump to PN
in the included GML file.
Maybe Matt & the gang would consider "discrete" commands for shuffle & repeat...
Best,
Brad
-
Hello.
You can do this using the MC's Automation SDK. Use the CMJCurPlaylistAutomation.Shuffle() property, where 0 is off and 1 is on. This is a read/write property, so you can set it. The Automation SDK documentation can be found at http://www.musicex.com/mediacenter/devzone.html (go into first document on the page).
Now, the Girder GML file uses MCC Windows messages to communicate with MC. However, there is not an MCC command to explicitly set the shuffle mode. So, you can use the Automation SDK to do it.
Using JHC's "Media Center Inside-Out" plugin, you can use the Automation SDK from external programs. This would enable you to write a LUA script to do it.
I saw sample LUA code to talk to a COM object somewhere in the LUA documentation, I think. I've never done it with LUA, but I could send you sample JavaScript or Perl code to do it if you wish.
Soundman
-
Uff, that doesn't sound simple :o . But if it's the way to go, then let's do it.
I'd appreciate your offer. My email is sapn@audio-jukebox.com
Thanks!