INTERACT FORUM

Please login or register.

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

Author Topic: mc25.exe /startMin  (Read 2229 times)

Striker

  • World Citizen
  • ***
  • Posts: 176
mc25.exe /startMin
« on: October 24, 2019, 05:36:59 pm »

Okay I found how I used to start MediaCenter minimized and then one day it stopped working and no longer works.

mc24.exe /startMin

It used to work... I cannot find it searching in the forums.

Was this option removed?

I know it used to work, because I found my batch file calling mc24.exe /startMin  (or mc25.exe)

I found it... using google search but unable to find it in the forum search.

https://yabb.jriver.com/interact/index.php?topic=95913.0

But it no longer works for me.
Logged

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: mc25.exe /startMin
« Reply #1 on: October 24, 2019, 06:54:51 pm »

Well, look at that.

It was indeed supposed to have been added to MC20:

20.0.120 (6/17/2015)
13. NEW: The Launcher takes the command /StartMin to start the program minimized.

But it was never documented in the "Command Line" parameters Wiki: https://wiki.jriver.com/index.php/The_Command_Line

It also doesn't work in MC25, as you note. I can't see any other command that would start MC minimized either.

I couldn't even find discussion on the issue, even though I thought I read such discussion a long time ago.



Anyway, why do you need MC to start minimized?
Do you know that you can set the MC "Media Server" to run at Windows startup, and that operates much like the Media Center running minimized?

There is a /MediaServer command line option which probably does what you want, if you don't want Media Center started with Windows, but want MC to start without the User Interface when you use a Windows icon to start it. That works just fine.
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

Striker

  • World Citizen
  • ***
  • Posts: 176
Re: mc25.exe /startMin
« Reply #2 on: October 24, 2019, 07:17:06 pm »



Anyway, why do you need MC to start minimized?

Thank you for the reply and confirmation.  I thought I was going crazy and dreaming stuff for a bit there.

I started using /startMin so long ago, and to tell you the truth, I don't really know when it stopped working.  Sometime in the past, I added MCxx /MCC 10014 to minimize MediaCenter after a delay.  It mostly works, but sometimes MediaCenter flashes orange in my taskbar for a bit and then stays orange after being minimized until I maximize it and the minimize it again.

I kinda of just use MediaCenter in the background for music and only using the gui to add tracks to PlayingNow.  So when I start it automatically each day in the morning, I want it minimized to the taskbar.

I skipped v25 and just bought the v26 upgrade so I started playing around again in v25 waiting for v26.
Logged

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: mc25.exe /startMin
« Reply #3 on: October 24, 2019, 08:27:38 pm »

In that case either starting Media Server with Windows, or modifying a MC startup icon to add the /MediaServer command should work well for you.

With Media Server running in the Windows System Tray you can just right-click on it a select "Show Media Center" to see the MC User Interface, select your music, and then minimize MC to the System Tray if you have that setting set. i.e. Options > General > Interface > Minimize to System Tray. Or if something is already in Playing Now, you can just press the Play Media Key if you have one on your keyboard, and the MC User Interface will open, and playback will commence.

I actually thought if Media Server was running, you opened the User Interface and started playback, then closed the User Interface that Media Server will keep playing. But it doesn't. I'm going to have to research why that is now, because I think it should keep playing. I've been told Media Server is just Media Center without its UI often enough to expect that.

I hadn't noticed that issue because on my HTPC the User Interface and Media Server is always run and active, while on my Workstation/MC Client I mostly don't run Media Server.

Anyway, the above might give you some ideas on how to avoid the flashing orange MC icon in the taskbar. Because that would be annoying.


PS: You can also edit the properties of the MC startup icon and set it to start minimized, using the Windows shortcut properties. That works, if Media Server isn't already running. If Media Server is already running, MC will start maximized regardless of the shortcut properties, which is also a bit strange/unexpected.
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

Striker

  • World Citizen
  • ***
  • Posts: 176
Re: mc25.exe /startMin
« Reply #4 on: October 24, 2019, 08:53:15 pm »

Actually I have MC configured to start playing the PlayingNow playlist on startup.  So nothing is required on my part, just start MC and playback starts.

I start MC from a dos script, not from an icon.  The daily startup is automated, not something I have to initiate.

When I actually start using my PC in the morning, I prefer MC to be minimized, one less thing to click daily.  How lazy is that?
Logged

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: mc25.exe /startMin
« Reply #5 on: October 24, 2019, 09:04:09 pm »

I thought you may be using a script, or Windows Scheduled Task.

As you are, you might be able to get rid of the orange taskbar icon by;
Starting MC
Minimizing it
Waiting a couple of seconds
Use 10013 to show the MC User Interface
Minimize it again.

Or something like that. No clicking required. But a flash of the MC interface, which could be just as annoying.
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42445
  • Shoes gone again!
Re: mc25.exe /startMin
« Reply #6 on: October 25, 2019, 08:25:07 am »

We'll fix /StartMin in a coming build of MC26.  The fix is a little complicated, so I don't think we'll merge back to v25.

We would start the program and search for the window.  We'd find the window and issue a minimize.  But then the window kept loading and loaded the positioning that was saved which threw away the minimize.

I'm going to make the program handle a custom MCC command to check the load status and only issue the minimize or maximize after the load status returns that it's complete.

Thanks a lot for the help!
Logged
Matt Ashland, JRiver Media Center

Striker

  • World Citizen
  • ***
  • Posts: 176
Re: mc25.exe /startMin
« Reply #7 on: October 25, 2019, 09:34:22 am »

We'll fix /StartMin in a coming build of MC26.  The fix is a little complicated, so I don't think we'll merge back to v25.

We would start the program and search for the window.  We'd find the window and issue a minimize.  But then the window kept loading and loaded the positioning that was saved which threw away the minimize.

I'm going to make the program handle a custom MCC command to check the load status and only issue the minimize or maximize after the load status returns that it's complete.

Thanks a lot for the help!

That sounds great.  I can wait !
Logged

DocLotus

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 2243
  • Retired and; Loving It!!!
Re: mc25.exe /startMin
« Reply #8 on: October 25, 2019, 12:59:33 pm »

I start MC minimized all the time through a Windows shortcut where you always have the option to open the program in the standard three Windows forms...
   1: Normal Window.
   2: Maximized.
   3: Minimized.

Works every time for almost any program.

Logged
MC... Latest version, 1 Mini PC, w/ Server.
TV... USA, ZIP 77036, Std view, Full screen, Not detached, Silicon Dust Guide, OTA, ATSC 1.
MC Audio... Realtek HD 7.1, MP3 Ext, Basic playback.
MC Control... Key, Mouse w/ G HUB.
Windows... 10 Pro, 64 bit, All MS updates.
Hardware... Beelink AMD GR5 Pro Mini PC, 16GB memory, 3 internal HDD's w/ 4.5 TB storage, 8 TB external storage.
1 SiliconDust HD HomeRun Connect Quatro, 1 SiliconDust HDHomeRun Flex Quatro, Amped Antenna w/ splitter.

Striker

  • World Citizen
  • ***
  • Posts: 176
Re: mc25.exe /startMin
« Reply #9 on: October 25, 2019, 01:01:18 pm »

I start MC minimized all the time through a windows shortcut where you always have the option to open the program in the standard three Windows forms...
   1: Normal Window.
   2: Maximized.
   3: Minimized.

Works every time for almost any program.

Yes, but I start MediaCenter from a script and have had no success starting a link from a script.
Logged

Striker

  • World Citizen
  • ***
  • Posts: 176
Re: mc25.exe /startMin WORKAROUND
« Reply #10 on: October 28, 2019, 03:28:37 pm »

Okay, I have a work around using the nircmd command (free download)

https://www.nirsoft.net/utils/nircmd2.html

The nircmd command does so many things, including letting you start a program minimized from a command line or batch file.

The command below works with MediaCenter started minimized without any orange flashing of the pgm on the taskbar.


set mcVersion=25
nircmd exec min "C:\Program Files (x86)\J River\Media Center %mcVersion%\Media Center %mcVersion%.exe"

Logged

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: mc25.exe /startMin
« Reply #11 on: October 28, 2019, 04:26:01 pm »

That's good and all, but I try not to use nircmd for anything these days. It is another layer to manage, and I used to have conflicts with some of their stuff some time ago.

Matt is fixing the issue.
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

Striker

  • World Citizen
  • ***
  • Posts: 176
Re: mc25.exe /startMin
« Reply #12 on: October 28, 2019, 07:13:27 pm »

That's good and all, but I try not to use nircmd for anything these days. It is another layer to manage, and I used to have conflicts with some of their stuff some time ago.

Matt is fixing the issue.

Matt's solution will be the preferred method to minimize on startup, but until then, this works well.

I've used so much of nircmd over the years, I've had no issues.
Logged
Pages: [1]   Go Up