INTERACT FORUM

Please login or register.

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

Author Topic: Troubles getting Theatre View To Open Another Program  (Read 1578 times)

RiderFan

  • Guest
Troubles getting Theatre View To Open Another Program
« on: January 31, 2008, 12:29:46 pm »

I made a shortcut on the theatre view homepage called "Beyond TV" that is supposed to run that program. If Beyond TV is not running already, then it works fine, but if Beyond TV is already running in the background, then it will switch to Beyond TV, but then 1 second later it switches back to Media Center.

Is there a command or something that will force the focus on Beyond TV?
Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!
Re: Troubles getting Theatre View To Open Another Program
« Reply #1 on: January 31, 2008, 05:38:26 pm »

Here is how I get PowerDVD to run Blu-ray / HD-DVD disks which may help some http://yabb.jriver.com/interact/index.php?topic=43879.0
Logged
JRiver CEO Elect

raym

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3583
Re: Troubles getting Theatre View To Open Another Program
« Reply #2 on: January 31, 2008, 09:23:04 pm »

I made a shortcut on the theatre view homepage called "Beyond TV" that is supposed to run that program. If Beyond TV is not running already, then it works fine, but if Beyond TV is already running in the background, then it will switch to Beyond TV, but then 1 second later it switches back to Media Center.

Is there a command or something that will force the focus on Beyond TV?

Try launching BTV via a script rather than a shortcut. I suspect the shortcut is returning immediately when BTV is running and therefore causing Theater View to think the app has been closed. Theater View is designed this way - to gain focus once the 3rd party app exits.
Logged
RKM Smart Home - www.rkmsmarthome.com.au
Z-Wave Home Automation

RiderFan

  • Guest
Re: Troubles getting Theatre View To Open Another Program
« Reply #3 on: January 31, 2008, 10:49:48 pm »

Try launching BTV via a script rather than a shortcut. I suspect the shortcut is returning immediately when BTV is running and therefore causing Theater View to think the app has been closed. Theater View is designed this way - to gain focus once the 3rd party app exits.
How do I launch via a script?
Logged

RiderFan

  • Guest
Re: Troubles getting Theatre View To Open Another Program
« Reply #4 on: February 03, 2008, 01:33:06 pm »

bump

How would I launch a program using a script?
Logged

raym

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3583
Re: Troubles getting Theatre View To Open Another Program
« Reply #5 on: February 03, 2008, 05:14:42 pm »

Create a vb scritp as follows. Note: Items between brackets <> denote things you'll need to substitute:

1. create a new file called <something>.vbs
2. put the following lines in it:
          set WshShell = WScript.CreateObject("WScript.Shell")
          WshShell.run "<BTV's full path and exe name>", 1, TRUE
3. save it
4. make MC launch this INSTEAD of the shortcut

Hope that helps.

Cheers.


PS - Any reason why you're not using MC for live TV playback?
Logged
RKM Smart Home - www.rkmsmarthome.com.au
Z-Wave Home Automation

RiderFan

  • Guest
Re: Troubles getting Theatre View To Open Another Program
« Reply #6 on: February 05, 2008, 06:34:29 pm »

OK, I tried the following 2 attempts and I get an error. Can anyone see what I am doing wrong?

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.run "C:\Program Files\SnapStream Media\Beyond TV\BTVD3DShell.exe", 1, TRUE

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.run "<C:\Program Files\SnapStream Media\Beyond TV\BTVD3DShell.exe>", 1, TRUE


neither one of these worked.
Logged

RiderFan

  • Guest
Re: Troubles getting Theatre View To Open Another Program
« Reply #7 on: February 05, 2008, 07:07:52 pm »

OK, this one works, but BTV will still only open for 1 second, before MC will come back.

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.run """C:\Program Files\SnapStream Media\Beyond TV\BTVD3DShell.exe""", 1, TRUE

(notice the 3 quotes)


This one works, and will stay up...


Option Explicit
Dim objShell
Set objShell = CreateObject("WScript.Shell")
objShell.Run """C:\Program Files\SnapStream Media\Beyond TV\BTVD3DShell.exe"""
WScript.Quit



Yaaaa! I don't know why the second one works, but it does. Thanx for your help.
Logged
Pages: [1]   Go Up