NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) MVP & NMT v
« Previous 1 … 23 24 25 26 27 … 115 Next »
Switch to MVP Soft and back to GBPVR

 
  • 0 Vote(s) - 0 Average
Switch to MVP Soft and back to GBPVR
cakes
Offline

Member

Posts: 204
Threads: 40
Joined: Dec 2005
#1
2006-02-28, 10:37 PM (This post was last modified: 2006-03-01, 10:02 PM by cakes.)
Hi,

I've found a method to switch from the GBPVR interface to the original MVP inferface...and back to the GBPVR interface. Certainly GBPVR has much more features than the MVP soft, but playback of avi & divx is much handier on the MVP soft..Big Grin . And reading through the forum I noticed quite a few other people would like this trick. So here it comes:

1. in GBPVR, add custom task (batch file or vbscript) that
-> starts the mvp services (C:\Program Files\Hauppauge MediaMVP\Hardware\Start.bat)
-> waits for a while, to allow the services to be started (i need 3 secs on my machine)
-> kills the gbpvr process
==> the MVP will go to 'contacting servers' and then the MVP interface will load.

2. In MVP Software, in C:\Program Files\Hauppauge MediaMVP\media.html add some code that
-> exits the mvpsoft
-> stops the other mediamvp processes by calling C:\Program Files\Hauppauge MediaMVP\Hardware\stop.bat
==> the MVP will go to 'contacting servers' again and then the GBPVR starts again. (this assumes you use the autostart servers setting)

To do the above, you will need a few small tools:
- to kill a process: process.exe (http://www.beyondlogic.org/solutions/pro...ssutil.htm)
- to run a batch file from explorer: Launch-in-IE (http://www.whirlywiryweb.com/q/launchinie.asp)
This one can be tricky, in a registry settings you need to add the url for each page that you want to run code from. The page that is run from the mvp is C:\Program Files\Hauppauge MediaMVP\Users\xx-xx-xx-xx-xx-xx\media.html (the x's represent the mac adress from the mvp I guess)

And this is the code I changed in the C:\Program Files\Hauppauge MediaMVP\media.html :
(I chose to put this function under the 'Radio' button, but it could be any, or even an extra button)

...
else if (keyCode == 13) //(BACK-Bks-8) or (OK-enter-13) ==> close picture mode
{
if(nModeActive == 1)
{
location.href=screenVideos;
}
else if (nModeActive ==2)
{
location.href=screenPictures;
}
else if (nModeActive ==3)
{
location.href=screenMusic;
}
else if (nModeActive ==4)
{
//var myLauncher = new ActiveXObject("LaunchinIE.Launch");
//alert(myLauncher.location);
// THIS LINES CALL A BATCH FILL THAT STOP THE MVPSTART Service
var strCmdLine = "C:\\Program Files\\Hauppauge MediaMVP\\Hardware\\stop.bat";
var obj = new ActiveXObject("LaunchinIE.Launch");
obj.LaunchApplication(strCmdLine);
// THIS LINE IS ENOUGH TO EXIT MVP
location.href = 'HCCOMMANDCALL:EXIT'
}
else if (nModeActive ==5)
{
location.href=screenSettings;
}

SetEvent(event);
return false;
}
...

For those interested, good luck with it !
pz1
Offline

Senior Member

Posts: 740
Threads: 16
Joined: Jan 2006
#2
2006-03-01, 05:44 PM
Great. I pondered on this kind of a solution. I will definitely give this a try. I am very busy at the moment, but in two weeks time I may find the time....
j210277
Offline

Junior Member

Posts: 25
Threads: 11
Joined: Jan 2006
#3
2006-03-09, 08:38 AM
Not having any luck with this need some help
cakes
Offline

Member

Posts: 204
Threads: 40
Joined: Dec 2005
#4
2006-03-10, 07:11 AM
Where do you get stuck?
j210277
Offline

Junior Member

Posts: 25
Threads: 11
Joined: Jan 2006
#5
2006-03-14, 09:05 AM
I can't get the launchinie.dll to work, I have registered the dll with regsvr32. Followed the instructions on setting up the registry listings as found on the web page. I can get the location.href = 'HCCOMMANDCALL:EXIT' to work on the page media.html, just to make sure I was using the right page. I have a windows xp pro system with service pack 2. It always asks if I want to allow active content to run with the web pages that come up which I think may have something to do with it, but I am not sure how to get around that.
I am also not sure what the to kill a process: process.exe has to do with the setup?
cakes
Offline

Member

Posts: 204
Threads: 40
Joined: Dec 2005
#6
2006-03-14, 08:27 PM
It is best first to test if you are able to switch to the mvp soft. Attached is the vbs script I use for this: mvp_start.vbs. I call the vbs script via a custom task. First it starts the mvp service, and after a pause of 3sec, it kills the gbpvr process (using process.exe). If you don't kill the gbpvr process, nothing will happen, gbpvr remains running. It is only after killing it that the mvp will connect to the mvp soft. The 3sec are needed to allow the mvp service to start. Without it, you will just connect back to gbpvr, because after killing it, it very quickly is started again. You will need to adapt the script with the directories you are using

For testing launchinie, it is best to try first in a temporary directory with a simple htlm file. Attached test.html contains a link which launches notepad.exe. When opening it with IExplorer, you do get a warning on allowing active content, but just allow it. I also get the same warning when opening the media.html from the mvp, but this is not a problem when running via the MVP. Attached is also a file with the registry settings from my setup. You will need to change the path according to where you drop the test.html file. Also the path to your mvp directory should be changed to your situation.

When you succeed with this test.html, changing the media.html from mvp as described above should then bring you back to gbpvr.


Good luck
[ATTACHMENT NOT FOUND]

[ATTACHMENT NOT FOUND]

[ATTACHMENT NOT FOUND]

(I had problems uploading them in one zip file, so I had to add .txt to them all )
j210277
Offline

Junior Member

Posts: 25
Threads: 11
Joined: Jan 2006
#7
2006-03-15, 02:32 AM
Basically have gotten everything to work including opening up notepad through the test webpage. After making the changes as you suggested to the radio button on the media.html page . I am getting a

Application popup: MVPMedia: MVPMedia.exe - Application Error : The exception Floating-point inexact result.
(0xc000008f) occurred in the application at location 0x7c81eb33.

I am also getting this with the scheduler within the mediamvp soft. I uninstalled and reinstalled the latest mediamvp software from the hauppage website to no avail. I think this will work once I can establish what is causing this mvpmedia crash.

Thanks for your help

Jon
Benz
Offline

Junior Member

Posts: 42
Threads: 4
Joined: Aug 2005
#8
2006-03-16, 11:32 PM
...... http://forums.nextpvr.com/showthread.php?t=12624

Surely the simplest solution ...... or does the need to reboot to get back to GBPVR make it a poor solution?
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#9
2006-03-17, 04:43 PM
Benz Wrote:...... http://forums.nextpvr.com/showthread.php?t=12624

Surely the simplest solution ...... or does the need to reboot to get back to GBPVR make it a poor solution?
I don't think that way lets you go back to GBPVR via remote.
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
scim
Offline

Member

Posts: 62
Threads: 4
Joined: Dec 2005
#10
2006-03-17, 11:09 PM
Thanks, I was looking for a way of doing this and it worked a treat.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Step-by-step instructions on how to get PCH A100 to wake the GBPVR PC? ww4397 30 11,919 2011-07-24, 02:52 PM
Last Post: mvallevand
  upgrading from pvrx2(gbpvr) to Npvr on popcorn hour stustunz 8 4,884 2011-01-19, 02:10 PM
Last Post: jksmurf
  MVP / GBPVR - just got a 1080p LCD tv.. Dave72 3 2,280 2010-12-14, 04:39 AM
Last Post: mvallevand
  PCH with GBPVR running not able to access network shares on Windows Home Server (WHS) jeffers 3 2,550 2010-07-19, 12:40 PM
Last Post: mvallevand
  I'm VERY impressed with NMT and GBPVR, that you devs! Mysteryman 10 4,691 2010-06-19, 03:22 AM
Last Post: Ryansplace
  Kicked back to nmt at idle stustunz 4 2,386 2010-05-26, 04:15 AM
Last Post: stustunz
  Egreat Won't Play Back Programs LewE 19 6,791 2010-05-18, 03:42 AM
Last Post: mvallevand
  Current status of GBPVR, PCH drbenjamin 2 2,325 2010-04-16, 04:15 AM
Last Post: drbenjamin
  Watching .TS files on my MVP, not in GBPVR emulation mode Probedude 1 1,941 2010-03-16, 11:32 AM
Last Post: mvallevand
  Video stutter with M34a and GBPVR eurochild 8 3,577 2010-02-28, 04:52 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode