INTERACT FORUM

Please login or register.

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

Author Topic: Basic MCC Command Help (28030)  (Read 1428 times)

hoyt

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 863
Basic MCC Command Help (28030)
« on: March 11, 2012, 07:15:52 pm »

Hey,

I'm trying to change the channel through MCWS by using command 28030 (http://wiki.jriver.com/index.php/Media_Center_Core_Commands#Commands).  On that wiki page it just specifies that the parameter passed is an integer of nKey.  I've found that if I set the parameter equal to a CHAR value, I get that number on the screen, and if I want to tun to channel 41, I have to pass Parameter=52, immediately followed by Parameter=49. 

How do I combine these into one command?

Thanks,

--Ryan
Logged

hoyt

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 863
Re: Basic MCC Command Help (28030)
« Reply #1 on: March 17, 2012, 12:52:03 pm »

bump.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Basic MCC Command Help (28030)
« Reply #2 on: March 17, 2012, 04:30:39 pm »

I'm not aware of a way to combine keystrokes.  Is sending two commands not acceptable?
Logged
The opinions I express represent my own folly.

hoyt

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 863
Re: Basic MCC Command Help (28030)
« Reply #3 on: March 18, 2012, 01:30:59 pm »

I'm not aware of a way to combine keystrokes.  Is sending two commands not acceptable?

Two commands seems ok, but when I need to change to channel 41-1, that's 3 commands, and then 100-3, that's 4.  If the connect gets cut between command 1 and 2, then I only tune to channel 4, then a moment later it tunes to channel 11.  If I want to have a simple page with links to change to channels, I can't because each channel involves kicking off multiple commands/ links. 

Seems like there should be a better way.  Like sending a keystroke, I can send 3 keystrokes in one command, but that seems risky because I want to be sure to send it as a channel change, not just a keystroke.

Thanks,

--Ryan
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Basic MCC Command Help (28030)
« Reply #4 on: March 18, 2012, 01:43:15 pm »

How about the MCWS Control command Key:

   http://localhost:52198/MCWS/v1/

(check the port number for your MC)
Logged
The opinions I express represent my own folly.

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Basic MCC Command Help (28030)
« Reply #5 on: March 18, 2012, 02:00:50 pm »

Sorry, that may not work.  I've been thinking you needed Keypress (eg. 27000).

I don't have a TV tuner, but perhaps you can try 13361 as the nKey (52d<<8 + 49d, or 3431h).

 
Logged
The opinions I express represent my own folly.

hoyt

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 863
Re: Basic MCC Command Help (28030)
« Reply #6 on: March 18, 2012, 02:29:33 pm »

Sorry, that may not work.  I've been thinking you needed Keypress (eg. 27000).

I don't have a TV tuner, but perhaps you can try 13361 as the nKey (52d<<8 + 49d, or 3431h).

 

Yeah, keypress does work, but my concern there is that it's "just" keypress, so if MC17 for whatever reason isn't expecting a channel change command, that keypress may do something else.  I'd rather avoid that if I can.  I'll check out 13361 a bit later, had to unplug the network connection for my MC box to steal it for something else briefly.  Thanks,

--Ryan
Logged
Pages: [1]   Go Up