INTERACT FORUM

Please login or register.

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

Author Topic: Always start Video and TV detached?  (Read 7327 times)

audioriver

  • Citizen of the Universe
  • *****
  • Posts: 514
Always start Video and TV detached?
« on: March 15, 2013, 09:10:03 am »

Is there a way to always start video and TV playback in detached mode? If not, could you please consider adding an option for this? Currently, I have to press Ctrl-6 every time a video or TV channel is started. Thanks.
Logged
Windows 10 Pro x64

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Always start Video and TV detached?
« Reply #1 on: March 15, 2013, 09:37:57 am »

This is possible with a simple script.

Search for "detached display" and my name on the forum.  I've posted instructions before.
Logged
"Some cultures are defined by their relationship to cheese."

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

audioriver

  • Citizen of the Universe
  • *****
  • Posts: 514
Re: Always start Video and TV detached?
« Reply #2 on: March 15, 2013, 10:08:35 am »

Thanks, are you referring to this thread?
Logged
Windows 10 Pro x64

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Always start Video and TV detached?
« Reply #3 on: March 15, 2013, 10:11:43 am »

That's one of them.
Logged
"Some cultures are defined by their relationship to cheese."

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

audioriver

  • Citizen of the Universe
  • *****
  • Posts: 514
Re: Always start Video and TV detached?
« Reply #4 on: March 15, 2013, 11:08:47 am »

Could you please be a little less cryptic? I am searching the wiki for "detach" and "detached" and only get results about keyboard shortcuts and 2006-2007 release notes. Also, searching the massive forums for a script that auto-detaches the video window isn't helping either. I am willing to spend some time to solve a seemingly simple problem (that imo shouldn't require custom user intervention) but I am hardly an advanced MC user and never used scripts for it. Just give me a link to the solution (or part-solution) and I'll try it from there, if it's too complicated to post the entire solution here.
Logged
Windows 10 Pro x64

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72536
  • Where did I put my teeth?
Re: Always start Video and TV detached?
« Reply #5 on: March 15, 2013, 12:01:30 pm »

I'm sorry.  I posted in the wrong thread.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Always start Video and TV detached?
« Reply #6 on: March 15, 2013, 12:09:02 pm »

Sorry.  I'm at work now and on my phone.  I'll try to post back later tonight.  However, it might help me if you explain your setup a bit more.  I'm not sure exactly what you're looking to do...

For example:  Why is your detached display closing in the first place?  Once it is open, it stays open unless you close it manually or quit and restart MC.
Logged
"Some cultures are defined by their relationship to cheese."

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

audioriver

  • Citizen of the Universe
  • *****
  • Posts: 514
Re: Always start Video and TV detached?
« Reply #7 on: March 15, 2013, 12:19:08 pm »

The detached display is not closing, it works fine. The problem is that every time playback is started when first opening MC, detached mode is off. What I'm trying to do is to set detached mode as the default mode, even after a MC restart.
Logged
Windows 10 Pro x64

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Always start Video and TV detached?
« Reply #8 on: March 15, 2013, 12:42:48 pm »

Ok, good.  That is easily solved.

I'll post detailed instructions later.  If I forget, bump this thread tomorrow.
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: Always start Video and TV detached?
« Reply #9 on: March 16, 2013, 04:26:02 pm »

So, if you regularly close and re-open MC, and want MC to always start up and then detach a display, you'll want to write/use a script to launch MC instead of launching it directly.  Here's a script you can use for this:

Code: [Select]
<package>
<job id="vbs">
<script language="VBScript">

'Create our handy dandy Shell object
set WshShell = WScript.CreateObject("WScript.Shell")

'Start MC
WshShell.Run "mc18.exe"

'Pause for a bit
WScript.Sleep 1000

'Detach display on Zone 1
WshShell.Run "mc18.exe /MCC 10037, 1:0"
</script>
</job>
</package>

Copy and paste that text above into a blank Notepad document.  Then, save it somewhere to disk as a WSF file (change the file extension to .wsf).  Now, when you run the script, it will launch MC (if it isn't already running) and then a second later, it will detach the display on Zone 1.  If you want to detach the display for a different Zone, just change the 1:0 part of the script above (1:0 corresponds to the first zone, 1:1 to the second, 1:2 to the third and so on and so forth).

Then, you can just change your shortcuts (in the Start Menu, Taskbar, etc) to point to this script file instead of directly to MC itself, and when you launch MC, it will always open up and then detach the selected display.
Logged
"Some cultures are defined by their relationship to cheese."

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

audioriver

  • Citizen of the Universe
  • *****
  • Posts: 514
Re: Always start Video and TV detached?
« Reply #10 on: March 16, 2013, 06:30:18 pm »

Thanks, but it doesn't work for me. A blank, detached Display window is opened and when a video is started, it's played in the usual Display View mode. If Ctrl-6 is pressed, a new detached window opens and the video plays there. The empty, black window remains open. Another problem I see with this script, is that a detached window will always open at MC  startup, even when it's not wanted (audio playback).
Logged
Windows 10 Pro x64

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Always start Video and TV detached?
« Reply #11 on: March 16, 2013, 07:29:05 pm »

Thanks, but it doesn't work for me. A blank, detached Display window is opened and when a video is started, it's played in the usual Display View mode. If Ctrl-6 is pressed, a new detached window opens and the video plays there. The empty, black window remains open. Another problem I see with this script, is that a detached window will always open at MC  startup, even when it's not wanted (audio playback).

Then it is on the wrong zone.  Which Zone are you using?
Logged
"Some cultures are defined by their relationship to cheese."

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

audioriver

  • Citizen of the Universe
  • *****
  • Posts: 514
Re: Always start Video and TV detached?
« Reply #12 on: March 17, 2013, 06:44:02 am »

I've retested on my second PC (2 zones) and it works fine with 1:1, the only issue being the window always popping up at startup. The other pc has 4 zones. How can I determine which is Zone 1, 2 etc? Alphabetically?
Logged
Windows 10 Pro x64
Pages: [1]   Go Up