INTERACT FORUM

Please login or register.

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

Author Topic: MCC Command Help  (Read 2843 times)

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5908
  • Farm Animal Stupid
MCC Command Help
« on: April 05, 2006, 03:09:09 pm »

1. What's the difference between:

MCC_PLAY
MCC_PLAY_OR_SHOW
MCC_SHOW_CURRENT_FILE

2. Is there an MCC command that will start a slideshow when there's music already playing? In Theater Mode, if you start music playing, and then play images, the images are in a paused state until you hit the Spacebar (Start Slideshow).

3. If the answer to #2 is no, then I'm assuming I can use MCC_KEYSTROKE to send the Spacebar to MC. Only question is, what's the nKeyCode for the Spacebar?

4. How do you get the Playlist ID to pass to MCC_PLAY_PLAYLIST?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42325
  • Shoes gone again!
Re: MCC Command Help
« Reply #1 on: April 05, 2006, 03:48:18 pm »

Next build:
Changed: Starting a group of images for playback in Theater View wouldn't start as a slideshow.

You should only need MCC_PLAY for playback.  ("Show" is a legacy concept in MC -- it's the same as play with the current version)

Space is key 32.
Logged
Matt Ashland, JRiver Media Center

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5908
  • Farm Animal Stupid
Re: MCC Command Help
« Reply #2 on: April 05, 2006, 03:55:38 pm »

Next build:
Changed: Starting a group of images for playback in Theater View wouldn't start as a slideshow.

Thanks!

Quote
Space is key 32.

I feel like an idiot. I knew that already. I really did. :P

How about #4?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42325
  • Shoes gone again!
Re: MCC Command Help
« Reply #3 on: April 05, 2006, 04:15:06 pm »

4. How do you get the Playlist ID to pass to MCC_PLAY_PLAYLIST?

You don't. (it's internal so you'd need to use the SDK)

Try launching a playlist using MC11.exe with the tree path switch. 

This is what I use on a remote at home for quick shortcuts to some smartlists for listening in the living room.
Logged
Matt Ashland, JRiver Media Center

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: MCC Command Help
« Reply #4 on: April 05, 2006, 04:18:38 pm »

Doof... Are you working on a new Girder GML by any chance?  I'm planning on doing that next week using Girder 4, and if so, I'd love to share efforts.  (This week is out as I'm DJ-ing a friend's Wedding this weekend, and I need to prep for that.)
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5908
  • Farm Animal Stupid
Re: MCC Command Help
« Reply #5 on: April 05, 2006, 04:22:56 pm »

Well, I was mostly working on updating the one that's included. I'm still using the freeware version of Girder (3.29b).

I'm only doing the commandline side of things because I never could grasp the concept of WindowMessages. :P

So far, it's been a piece of cake. I opened the .GML file up in Notepad (it's all just XML) and did a quick Search/Replace to replace mjextman.exe with MC11.exe. At that point, it's mostly done. Now I just have to go through and make sure all of the new commands are there. Feels like I should be able to knock this out in less than an hour.

Or am I missing something that should make this a much more complicated and time consuming endeavor?
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: MCC Command Help
« Reply #6 on: April 05, 2006, 05:01:45 pm »

Girder 4's GML files are pretty different, and include built-in logic in a very different way.  I'm planning to build a new one that does certain things while MC is in the foreground, and different things when it is in the background (maybe with a shift-key to allow you to specify with the remote that you want the command to go to the MC in the background).

I haven't really spent much time looking at the old included GML file yet.  I'm basically new to Girder.  I messed around with the old v3 stuff, but it looked too complicated to get it to do what I wanted (I knew it could be done, but my laziness won).

4 really looks promising though.  I mainly just wondered if someone else was working on it at the same time.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5908
  • Farm Animal Stupid
Re: MCC Command Help
« Reply #7 on: April 06, 2006, 11:34:54 pm »

This is kinda cool.

I have a headless (well, not headless, but the only display I see is the secondary display which only shows me Theater View) HTPC out in my living room, connecting to my main library via Library Server. I realized that there was a need to reload the library, since changes in the library aren't sent to the client until it's reloaded. So I set up a simple Girder macro that would kill the MC task, wait 15 seconds, then restart it. Simple enough.

I then realized that I would need a way to easily update MC, since I update the server with every new build. So I created a shared folder on the server that I download each build to. I save it as "MCUpdate.exe". I then set up another Girder macro that would kill the MC task and then run MCUpdate.exe off the share. Since I set the HTPC up to use Auto Install, it just installs, and then fires back up, loading Theater View in the process.

I mapped both of these to buttons on my remote and voila. Now it's easy as pie to keep the HTPC updated. :)
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42325
  • Shoes gone again!
Re: MCC Command Help
« Reply #8 on: April 07, 2006, 06:22:43 am »

Now it's easy as pie to keep the HTPC updated. :)

This just doesn't mean the same thing anymore since seeing American Pie.
Logged
Matt Ashland, JRiver Media Center

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5908
  • Farm Animal Stupid
Re: MCC Command Help
« Reply #9 on: April 07, 2006, 08:00:47 am »

This just doesn't mean the same thing anymore since seeing American Pie.

That pie looked awfully easy to me. I don't think he even had to buy it dinner first.

But in all seriousness... I have a couple more questions.

In the Remote Control Options, you have commands that:

  • Toggle only between Theater View and Fullscreen
  • Jump straight to Theater View's "Home"
  • Jump straight to Theater View's "Playing Now"
  • Jump straight to Theater View's "Audio"
  • Jump straight to Theater View's "Images"
  • Jump straight to Theater View's "Video"

Is this possible using the MCC Commands?

Also... What are the KeyIDs for Up, Down, Left, Right, and Enter (does MC need the full CRLF or just the CR?)? I can easily map the arrow keys and Enter key in Girder, but I'd rather do it using the MCC Commands to insure that they're intercepted by MC and not by something else.
Logged

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5908
  • Farm Animal Stupid
Re: MCC Command Help
« Reply #10 on: April 07, 2006, 12:16:31 pm »

*bump*
Logged

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5908
  • Farm Animal Stupid
Re: MCC Command Help
« Reply #11 on: April 07, 2006, 07:10:21 pm »

Anyone?
Logged

Griff

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 710
Re: MCC Command Help
« Reply #12 on: April 07, 2006, 09:47:29 pm »

Hi Doof

Is this what youre looking for?

http://yabb.jriver.com/interact/index.php?topic=28539.0

This was a while back, so dont know if they still work. ( dont use Hairstyle anymore)  :'(

Griff
Logged

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5908
  • Farm Animal Stupid
Re: MCC Command Help
« Reply #13 on: April 08, 2006, 06:11:14 am »

Thanks, Griff. That was exactly what I was looking for. Works like a charm.

Now, I just have to figure out the other few things and this will be perfect. :)
Logged
Pages: [1]   Go Up