- September 2, 2007
- 85
- 58
- Home Country
- Belgium
Why shouldn't it work?
Btw: minimizing the MP is only good if your remote (IR) driver emulates key strokes alike the keyboard.
If it uses an IRTrans server (as the Zalman HD160XT Remote) then it is better to exit MP because it will continue reading all the keystrokes from the server port after PowerDVD has started. This will have the effect that both MP and PowerDVD will react to your remote which is somewhat undesirable.
The script I wrote works flawlessly on my system & infrastructure setup. My 2 cents worth of advice is to play a bit with the sleeping times. PowerDVD8 needs some time to start and read its settings (the first time) and while it is doing that it ignores any key you sent to it.
Here is the code snipplet of what I did.
Notice that I have dual view with my HTPC on the primary adapter and my Plasma on the secondary.
So I'm also obliged to move PowerDVD to the correct adapter.
And for the "back/exit" not working: I solved this by making back AND exit doing the same thing. This should work with any remote.
Btw: minimizing the MP is only good if your remote (IR) driver emulates key strokes alike the keyboard.
If it uses an IRTrans server (as the Zalman HD160XT Remote) then it is better to exit MP because it will continue reading all the keystrokes from the server port after PowerDVD has started. This will have the effect that both MP and PowerDVD will react to your remote which is somewhat undesirable.
The script I wrote works flawlessly on my system & infrastructure setup. My 2 cents worth of advice is to play a bit with the sleeping times. PowerDVD8 needs some time to start and read its settings (the first time) and while it is doing that it ignores any key you sent to it.
Here is the code snipplet of what I did.
Notice that I have dual view with my HTPC on the primary adapter and my Plasma on the secondary.
So I'm also obliged to move PowerDVD to the correct adapter.
Code:
IfWinExist, MediaPortal
{
WinActivate, MediaPortal
[COLOR="Green"];Stops Media if already playing in MP[/COLOR]
SendInput b
[COLOR="Green"]; and close it first[/COLOR]
WinClose, MediaPortal
}
[COLOR="Green"];Switch nvidia to 24Hz mode // not necessary my Plasma supports 50/60/24 & no flickering
;Run Rundll32.exe nvcpl.dll`, dtcfg setmode 1 1920 1080 32 24[/COLOR]
[COLOR="green"]; Start bootup sequence for Power DVD[/COLOR]
IfWinNotExist, CyberLink PowerDVD
{
[COLOR="green"];Run PowerDVD8 and have it play the mounted disc automatically[/COLOR]
Run "%PowerDVDAppPath%\PowerDVD8.exe" %PreferredDrive%
WinWait, CyberLink PowerDVD [COLOR="green"]; wait until the application is started and the window appears[/COLOR]
WinWaitActive, CyberLink PowerDVD [COLOR="Green"]; wait until the application gets active[/COLOR]
Sleep, 500 [COLOR="green"]; then wait another 0.5 sec and let PowerDVD initialze itself (as from v8.0 this takes long)[/COLOR]
WinMove, CyberLink PowerDVD,, A_ScreenWidth, 0
WinMaximize, CyberLink PowerDVD
}
[COLOR="green"];wait for the maximize to take place and remember ... the DVD/HD-DVD/Blu-ray is already starting[/COLOR]
WinActivate, CyberLink PowerDVD
return
And for the "back/exit" not working: I solved this by making back AND exit doing the same thing. This should work with any remote.
Code:
[COLOR="Green"]; exit PowerDVD and return to Media Portal [/COLOR]
back:
exit:
IfWinExist, CyberLink PowerDVD
{
[COLOR="green"];Switch nvidia back to 60Hz mode
;Run Rundll32.exe nvcpl.dll`, dtcfg setmode 1 1920 1080 32 60[/COLOR]
WinClose, CyberLink PowerDVD
}
IfWinNotExist, MediaPortal
{
[COLOR="green"];Install directory previously stored in MediaPortalAppPath[/COLOR]
Run "%MediaPortalAppPath%\MediaPortal.exe"
}
ExitApp