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.. . 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 !
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.. . 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 !