INTERACT FORUM

Please login or register.

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

Author Topic: Command prompt with external program in theater view  (Read 2210 times)

Don W

  • World Citizen
  • ***
  • Posts: 185
Command prompt with external program in theater view
« on: December 02, 2014, 09:51:47 am »

Add an "external program" item to theater view menu. When the external program is run a command prompt is opened and doesn't go away until the external program is closed. If the external program is not run in full screen, then the command prompt is visible and can get in the way. Also, if the external program is left running then the command prompt never goes away. This is not the best behavior. Command prompt really should not be running but especially should not be visible.

Work around is to open external program with a batch file and set the batch file as the external program to run. In the batch file, use start command to launch the program. For example:

start "" "C:\Program Files\Program Folder\program.exe"
Logged

yoyo09

  • Recent member
  • *
  • Posts: 13
Re: Command prompt with external program in theater view
« Reply #1 on: December 02, 2014, 03:54:46 pm »

I use this method for launching metro apps.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42064
  • Shoes gone again!
Re: Command prompt with external program in theater view
« Reply #2 on: December 02, 2014, 05:59:17 pm »

So are you saying adding a mode like "[ ] Wait for program to finish"?  It would be checked by default and use the existing system.  If it was unchecked, it would just spawn the process but not wait for a result?
Logged
Matt Ashland, JRiver Media Center

Don W

  • World Citizen
  • ***
  • Posts: 185
Re: Command prompt with external program in theater view
« Reply #3 on: December 02, 2014, 07:06:48 pm »

What does it do with the result? I suspect that it is how MC knows when to restore itself if the option to hide when program is running is checked. Is there anything else?

If you can get notified when program quits without waiting for result then I'd say use that. If the result is used for anything else, then the option you suggest might be useful.

If you must wait for result to get notified when program quits, then it might be enough to leave as is when hide option is checked but only spawn process without waiting when the option to hide is not checked.

Make sense?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42064
  • Shoes gone again!
Re: Command prompt with external program in theater view
« Reply #4 on: December 02, 2014, 07:49:58 pm »

I'm feeling my way along in this thread.

I thought you were asking for a way to launch the program and immediately have MC back running.

If that's not it, could you explain it to me?

Thanks.
Logged
Matt Ashland, JRiver Media Center

Don W

  • World Citizen
  • ***
  • Posts: 185
Re: Command prompt with external program in theater view
« Reply #5 on: December 03, 2014, 12:49:17 pm »

I was just noticing that having a command prompt open and visible is not the best, especially when the external program is not full screen. Best case it is messy, un-refined. Worst case the window gets in the way of what you need to do. And if you DO intend to leave the external program running indefinitely, then the command prompt never closes. Unless you use the work-around that I mentioned.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42064
  • Shoes gone again!
Re: Command prompt with external program in theater view
« Reply #6 on: December 03, 2014, 12:51:02 pm »

Well couldn't you just set the destination program to launch directly so there isn't a command prompt waiting on it?
Logged
Matt Ashland, JRiver Media Center

Don W

  • World Citizen
  • ***
  • Posts: 185
Re: Command prompt with external program in theater view
« Reply #7 on: December 03, 2014, 03:17:53 pm »

Well, yes, I would think so. But it seems that a command prompt is used internally by MC to launch whatever is set as the destination program. My guess as to why has been that it is a way to be informed when the program quits. But I don't know.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42064
  • Shoes gone again!
Re: Command prompt with external program in theater view
« Reply #8 on: December 03, 2014, 03:45:47 pm »

Well, yes, I would think so. But it seems that a command prompt is used internally by MC to launch whatever is set as the destination program. My guess as to why has been that it is a way to be informed when the program quits. But I don't know.

I don't know why we were showing the command prompt.

Next build:
Changed: Running a program from Theater View starts the batch file to run hidden.
Logged
Matt Ashland, JRiver Media Center

Don W

  • World Citizen
  • ***
  • Posts: 185
Re: Command prompt with external program in theater view
« Reply #9 on: December 03, 2014, 03:52:45 pm »

I posted a bug report not long ago about the command window not showing up when target for external program is cmd.exe. You reported that as fixed. But, it seems that the command prompt has been showing since then.
Logged
Pages: [1]   Go Up