INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Girder command to SHUFFLE (not toggle)  (Read 1452 times)

sapnho

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 301
  • Leave a legacy
Girder command to SHUFFLE (not toggle)
« 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?
Logged

bspachman

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 896
Re: Girder command to SHUFFLE (not toggle)
« Reply #1 on: August 02, 2003, 08:28:31 pm »

Not that I know of, but there are several commands to reshuffle the Playing Now without toggling the shuffle mode. Check out

Code: [Select]
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
Logged

Soundman

  • Regular Member
  • World Citizen
  • ***
  • Posts: 155
  • Go Music!
Re: Girder command to SHUFFLE (not toggle)
« Reply #2 on: August 03, 2003, 08:55:56 pm »

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
Logged

sapnho

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 301
  • Leave a legacy
Re: Girder command to SHUFFLE (not toggle)
« Reply #3 on: August 03, 2003, 09:05:23 pm »

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!
Logged
Pages: [1]   Go Up