INTERACT FORUM

Please login or register.

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

Author Topic: Is it possible to run two core commands on the same line?  (Read 1475 times)

Belarathon

  • World Citizen
  • ***
  • Posts: 161
Is it possible to run two core commands on the same line?
« on: May 02, 2014, 06:55:09 pm »

Hi:

I would like to be able to run /MCC 10002 and /MCC 10014 on the same command line from Intellremote, in order to stop what's playing, and minimize JRiver to the systray.

Is this possible?  AFAIK Intelliremote only allows one event per button press.

Thank you,


Cary
Logged
JRiver Media Center 27 → Topping E30 → Luxkit z501 or Sherwood S5000 → A/D/S L810

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Logged
"Some cultures are defined by their relationship to cheese."

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

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Is it possible to run two core commands on the same line?
« Reply #2 on: May 02, 2014, 10:22:55 pm »

Well, you can computer that way.  Try in a cmd shell:

   mc19.exe /mcc 10000 & pause & mc19.exe /mcc 10002
Logged
The opinions I express represent my own folly.

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Is it possible to run two core commands on the same line?
« Reply #3 on: May 02, 2014, 10:57:10 pm »

Well, you can computer that way.  Try in a cmd shell:

   mc19.exe /mcc 10000 & pause & mc19.exe /mcc 10002

True.  That might work through Intelliremote, but won't the pause require a keypress?
Logged
"Some cultures are defined by their relationship to cheese."

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

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Is it possible to run two core commands on the same line?
« Reply #4 on: May 03, 2014, 12:12:35 am »

Pause was an example command I chose, because A) mc19.exe /sleep 2000 won't work, and B) I didn't feel like using the ping-as-sleep trick.  An external Sleep command would be the right replacement.
Logged
The opinions I express represent my own folly.

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Is it possible to run two core commands on the same line?
« Reply #5 on: May 03, 2014, 12:24:10 am »

Pause was an example command I chose, because A) mc19.exe /sleep 2000 won't work, and B) I didn't feel like using the ping-as-sleep trick.  An external Sleep command would be the right replacement.

A simple script would be a better replacement, especially if you need to pause.

I also wouldn't be that sure that Intellieremote gives you full shell parsing (for all the reasons you pointed out in the MCAutoQueue thread).  So, then you'd need to explicitly call cmd.exe, and you're getting pretty complex (and you would probably see the black cmd box each time it was used).
Logged
"Some cultures are defined by their relationship to cheese."

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

Belarathon

  • World Citizen
  • ***
  • Posts: 161
Re: Is it possible to run two core commands on the same line?
« Reply #6 on: May 03, 2014, 12:43:39 pm »

I'd just send /MCC 20007, but I use TrueLaunchBar with a media plugin using a hook to control MC, which gives me a tidy little media player on my taskbar.  MC vehemently dislikes being shutdown while that hook is active.
Logged
JRiver Media Center 27 → Topping E30 → Luxkit z501 or Sherwood S5000 → A/D/S L810
Pages: [1]   Go Up