INTERACT FORUM

Please login or register.

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

Author Topic: How to start minimized?  (Read 8393 times)

miketl

  • Guest
How to start minimized?
« on: February 27, 2015, 09:12:48 pm »

Hello,

Would it be possible to add the command mc20.exe /StartMin to start the program minimized. To complement the new command /StartMax. It is very useful to have this command especially when it is running in a headless computer and is used only to serve music files without the need for showing the program on the desktop.

Thank you
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10933
Re: A feature request
« Reply #1 on: February 28, 2015, 06:50:03 am »

That already exists as "MC20.exe /MediaServer"
Logged
~ nevcairiel
~ Author of LAV Filters

miketl

  • Guest
Re: A feature request
« Reply #2 on: February 28, 2015, 07:16:41 am »

If i start MC in MediaServer mode if I start playback it brings MC screen to the desktop. What I would like to have is to start MC minimized, once it starts playback it will remain minimized. So playback will be in the background. There is no need to have MC in the desktop if I use it in a headless PC.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: A feature request
« Reply #3 on: February 28, 2015, 07:18:33 am »

If you're starting Media Server only at Windows startup, it shouldn't show the UI.

Tools > Options > Startup > Windows Startup.
Logged

miketl

  • Guest
Re: How to start minimized?
« Reply #4 on: February 28, 2015, 07:26:25 am »

This is the command that is executed if I use it on startup "C:\Program Files (x86)\J River\Media Center 20\Media Center 20.exe" /Boot
Using this command brings the UI to the desktop.
Logged

miketl

  • Guest
Re: How to start minimized?
« Reply #5 on: February 28, 2015, 07:37:34 am »

Please look at this post http://yabb.jriver.com/interact/index.php?topic=95009.msg654428#msg654428
He also said that the UI is brought to the desktop once play back has started.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10933
Re: How to start minimized?
« Reply #6 on: February 28, 2015, 07:38:56 am »

If its headless, how do you know it starts the UI? Furthermore, why do you care? :)
Logged
~ nevcairiel
~ Author of LAV Filters

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: How to start minimized?
« Reply #7 on: February 28, 2015, 09:18:51 am »

If its headless, how do you know it starts the UI? Furthermore, why do you care? :)

Right. And if you just do what Jim suggested, it does not start the UI and works great.  That option is exactly for cases like this.
Logged
"Some cultures are defined by their relationship to cheese."

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

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: How to start minimized?
« Reply #8 on: February 28, 2015, 09:39:06 am »

This is the command that is executed if I use it on startup "C:\Program Files (x86)\J River\Media Center 20\Media Center 20.exe" /Boot
Using this command brings the UI to the desktop.

That isn't the right command line.  Media Center's main executable (Media Center 20.exe) does not take any command line options.  If you run that, it will always launch the full UI and ignore any parameters given.  Media Center uses a separate command line launcher applet for all command line options, which is in your Windows System32 directory (and so is always in your default search path).

The proper command line to do what you were trying to do above is:

mc20.exe /MediaServer

This is explained here:
http://wiki.jriver.com/index.php/The_Command_Line

However, as I said above, if you're just trying to use MC in "Media Server" mode, then you don't need to do any of that, and it will work better if you don't.  Just set the option Jim explained:

Tools > Options > Startup > Windows Startup > Run on Windows Startup: Media Server

And it does it for you.  That also has the benefit that if you later do open the main UI, it will automatically go back into Media Server mode whenever you close the main UI.  I'm not sure if using /MediaServer works that way (though it probably does, I'd have to test).  In any case, while you can script it yourself, that's probably silly, since you could just enable the supported option which does the same thing.
Logged
"Some cultures are defined by their relationship to cheese."

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

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10933
Re: How to start minimized?
« Reply #9 on: February 28, 2015, 09:51:45 am »

That isn't the right command line.  Media Center's main executable (Media Center 20.exe) does not take any command line options.  If you run that, it will always launch the full UI and ignore any parameters given.

Actually, thats the command line MC installs into Autorun to launch media server on windows start. It does take some options. But what it does when called like this depends on what you configured MC to do at windows launch.
Logged
~ nevcairiel
~ Author of LAV Filters

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: How to start minimized?
« Reply #10 on: February 28, 2015, 06:43:50 pm »

Actually, thats the command line MC installs into Autorun to launch media server on windows start. It does take some options. But what it does when called like this depends on what you configured MC to do at windows launch.

Ahhh!  Didn't know that.  Thanks, Hendrik.  Any documentation for other switches?

In any case, it wouldn't accomplish what he wanted it to accomplish.
Logged
"Some cultures are defined by their relationship to cheese."

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

DoubtingThomas

  • Citizen of the Universe
  • *****
  • Posts: 564
Re: How to start minimized?
« Reply #11 on: June 16, 2015, 10:38:57 am »

I use MC20.exe /Start to start MediaCenter, and then I call another MC20.exe command to minimize MediaCenter.

But... is there a way to start MediaCenter minimized?  Not the media server but MediaCenter itself.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: How to start minimized?
« Reply #12 on: June 16, 2015, 10:59:16 am »

But... is there a way to start MediaCenter minimized?  Not the media server but MediaCenter itself.

Right-click the shortcut and pick "Properties."

You can pick Run as either "Normal window", "Minimized" or "Maximized."
Logged
Matt Ashland, JRiver Media Center

DoubtingThomas

  • Citizen of the Universe
  • *****
  • Posts: 564
Re: How to start minimized?
« Reply #13 on: June 16, 2015, 11:02:00 am »

Right-click the shortcut and pick "Properties."

You can pick Run as either "Normal window", "Minimized" or "Maximized."

I'm trying to start MediaCenter from a batch file, and I guess I could call a link instead of the pgm, but a MC20.exe command to start minimized would be very helpful.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: How to start minimized?
« Reply #14 on: June 16, 2015, 11:14:07 am »

Alright, we'll try it next build.

NEW: The Launcher takes the command /StartMin to start the program minimized.

We reserve the right to back track if there are problems :P
Logged
Matt Ashland, JRiver Media Center

DoubtingThomas

  • Citizen of the Universe
  • *****
  • Posts: 564
Re: How to start minimized?
« Reply #15 on: June 16, 2015, 11:22:45 am »

Alright, we'll try it next build.

NEW: The Launcher takes the command /StartMin to start the program minimized.

We reserve the right to back track if there are problems :P

THANKS AGAIN Matt.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10933
Re: How to start minimized?
« Reply #16 on: June 16, 2015, 02:35:17 pm »

But... is there a way to start MediaCenter minimized?  Not the media server but MediaCenter itself.

What would a minimized media center really do differently than Media Server?
I can't really think of anything useful.
Logged
~ nevcairiel
~ Author of LAV Filters

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7804
  • Autumn shade...
Re: How to start minimized?
« Reply #17 on: June 16, 2015, 02:37:32 pm »

What would a minimized media center really do differently than Media Server?
I can't really think of anything useful.

Probably to start the taskbar instance without showing the main window vs showing Media Server's system tray icon. I can see the appeal.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

DoubtingThomas

  • Citizen of the Universe
  • *****
  • Posts: 564
Re: How to start minimized?
« Reply #18 on: June 16, 2015, 03:04:05 pm »

What would a minimized media center really do differently than Media Server?
I can't really think of anything useful.

I use MediaCenter for audio most of the day and keep it minimized most of the day.  When I click the button to start my audio system and MediaCenter, it would be nice to have it all happen in the background with MediaCenter starting minimized to eliminate the interruption when MC starts and then gets minimized from my script.  I do want the gui/app available in my taskbar.
Logged

csimon

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1686
Re: How to start minimized?
« Reply #19 on: June 16, 2015, 03:09:06 pm »

What would a minimized media center really do differently than Media Server?
I can't really think of anything useful.

I think Media Server on its own won't play video, you need the UI up and running. Also, running minimised allows for a cleaner HTPC look, although there will still be e problem that it doesn't stay minimised after playing something and it restores.
Logged
Pages: [1]   Go Up