INTERACT FORUM

Please login or register.

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

Author Topic: Girder command to play a smartlist [easy]?  (Read 2614 times)

Agonostis

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 57
Girder command to play a smartlist [easy]?
« on: January 18, 2004, 04:51:25 pm »

I have some smartlists I'd like to associate with girder events.

How exactly would I do this?

Basically, girder event [button1] would result in playing smartlist "All Music"

Thanks for any advice!
Logged

jleerigby

  • Guest
Re:Girder command to play a smartlist [easy]?
« Reply #1 on: January 18, 2004, 05:35:24 pm »

Yes - it's easy!

As an example to play the smartlist in the tree under Playlists\my smartlist execute mjextman.exe with the parameter:

/Play TREEPATH=Playlists\my smartlist

Note that this does not replace the current contents of playing now so you may want to create a mutigroup consisting of:

mjextman.exe /Clear
wait (give it around 600 ms)
the above.

This information is available from the dev zone link at the top of the forum under command line parameters.
Logged

Agonostis

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 57
Re:Girder command to play a smartlist [easy]?
« Reply #2 on: January 18, 2004, 05:41:55 pm »

Thanks JLee!

I have my girder commands configured to use the Windows SendMessage commands.  There is information about them in the dev zone link also, but I find it somewhat cryptic, and not immediate apparent how to do what i want.

Is there any way to do this with the SendMessage commands?  If not, I will just use your method.  Thanks again!
Logged

jleerigby

  • Guest
Re:Girder command to play a smartlist [easy]?
« Reply #3 on: January 18, 2004, 05:46:34 pm »

Sorry I don't know.  

I've just created an OSD menu that lists may top 5 favourite smartlists and mjextman.exe works a treat.
Logged

Lasse_Lus

  • Citizen of the Universe
  • *****
  • Posts: 999
Re:Girder command to play a smartlist [easy]?
« Reply #4 on: January 18, 2004, 06:21:31 pm »

hi, you can use the command "MCC_PLAY_PLAYLIST" nr 30008 and the IPARAM should be the internal playlist ID. You get this ID when you edit a playlist (by typing) based on a playlist   8)

//Lasse Lus

Logged
MT5FR

bspachman

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 896
Re:Girder command to play a smartlist [easy]?
« Reply #5 on: January 18, 2004, 06:37:59 pm »

Yes - it's easy!

As an example to play the smartlist in the tree under Playlists\my smartlist execute mjextman.exe with the parameter:

/Play TREEPATH=Playlists\my smartlist

Note that this does not replace the current contents of playing now so you may want to create a mutigroup consisting of:

mjextman.exe /Clear
wait (give it around 600 ms)
the above.

This information is available from the dev zone link at the top of the forum under command line parameters.
You can use the parameter /PlayReplace TREEPATH=... to clear the existing PN without resorting to a multigroup. The documentation is a bit out-of-date... :)

Best,
Brad
Logged

Agonostis

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 57
Re:Girder command to play a smartlist [easy]?
« Reply #6 on: January 18, 2004, 11:17:30 pm »

Can someone explain in more detail the process by which one finds the PlayListID?

Thanks.
Logged

bspachman

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 896
Re:Girder command to play a smartlist [easy]?
« Reply #7 on: January 18, 2004, 11:38:41 pm »

Sure (I think)....

1. Create a New Smartlist
2. Add a Playlist rule to it for the playlist whose ID you want to find.
3. Highlight the newly-created rule (eg. "Playlist: Folk")
4. Use <ctrl>-C to copy the rule
5. Paste the rule into Notepad or something like it (you may be able to paste it back into the search/playlist rule entry box).
6. You should see something like: playlistid==884535752

I believe that will be the ID you are looking for.

Good luck!
Brad
Logged

jleerigby

  • Guest
Re:Girder command to play a smartlist [easy]?
« Reply #8 on: January 19, 2004, 01:05:23 am »

Quote
You can use the parameter /PlayReplace TREEPATH=... to clear the existing PN without resorting to a multigroup. The documentation is a bit out-of-date...
Thanks Brad.  Since there is a /PlayAppend command I'd assumed that /Play was meant to replace and was therefore 'broken'.  

It's a real shame that these features are added without updating the documentation.  Just a one liner in the dev zone would have saved me a lot a messing around.
Logged

bspachman

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 896
Re:Girder command to play a smartlist [easy]?
« Reply #9 on: January 19, 2004, 10:47:25 am »

Thanks Brad.  Since there is a /PlayAppend command I'd assumed that /Play was meant to replace and was therefore 'broken'.

You aren't imagining things. :) It did used to mean that. The behavior changed back in the 9.1 development cycle (build 244, I believe).

Quote
It's a real shame that these features are added without updating the documentation.  Just a one liner in the dev zone would have saved me a lot a messing around.

I agree. The only bit of documentation on this change was Matt's change list when he released the build to the group. I blinked and missed it then and had to go searching for it later....

Best,
Brad
Logged
Pages: [1]   Go Up