home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Blu-Ray / HD-DVD Player with PowerDVD (a working solution)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ObiYawn" data-source="post: 267432" data-attributes="member: 73988"><p><strong>HD_Starter script: 1) For NVIDIA cards 2) Start playback of disc automatically</strong></p><p></p><p>I made a few minor modifications to the original HD_Starter script. These can be summarized as follows:</p><p></p><p>1) The original script allowed switching ATI cards between regular (i.e. 50Hz) refresh rate and 24Hz refresh rate (the latter being better for playback of film-based content on supported displays). I included the necessary lines of code to do the same for NVIDIA based cards.</p><p></p><p>2) PowerDVD now starts playback upon launch. This assumes that you have already inserted the disc before starting PowerDVD.</p><p></p><p>3) I am not hiding MediaPortal upon launch of PowerDVD anymore. I wasn't happy having to see my desktop background while it took PowerDVD some time to launch. Additionally, I am starting PowerDVD using "RunWait" instead of just "Run". This will (purposely) disallow any further actions in MediaPortal while it takes PowerDVD a few seconds to start up.</p><p></p><p>All changes to the original script have been bolded in the below code. Also, I had no need for the keyboard mapping changes that were at the very bottom and discarded them from my script.</p><p></p><p>[CODE]</p><p>;http://www.keyxl.com/aaab43b/275/PowerDVD-Ultra-keyboard-shortcuts.htm</p><p>;http://www.powerdvd.com-http.com/how-to-use-powerdvd.html</p><p>SetTitleMatchMode, 2</p><p></p><p></p><p>; Start sequence</p><p>IfWinNotExist, CyberLink PowerDVD</p><p>{</p><p> WinActivate, MediaPortal</p><p></p><p> ;Stops Media playing in MP</p><p> Send {b} </p><p> </p><p> [B];Switch nvidia to 24Hz mode</p><p> [COLOR="Red"]Run Rundll32.exe nvcpl.dll`, dtcfg setmode 1 1920 1080 32 24[/COLOR][/B]</p><p></p><p>[B] ;Run PowerDVD8 and have it play the inserted disc automatically</p><p> ;Note 1: Change the drive letter (in this case D:) as appropriate</p><p> ;Note 2: If you are not using PowerDVD8, you need to adjust the command line as appropriate</p><p> [COLOR="Red"]RunWait "%A_ProgramFiles%\CyberLink\PowerDVD8\PowerDVD8.exe" /FULLSCREEN D:[/COLOR][/B]</p><p> WinActivate, CyberLink PowerDVD</p><p> WinMaximize </p><p> </p><p> Sleep, 500</p><p> [B];No need to minize MediaPortal, hence the next line is commented out[/B]</p><p> [B][COLOR="Red"];[/COLOR][/B]WinMinimize, MediaPortal</p><p> WinActivate, CyberLink PowerDVD</p><p>}</p><p>else</p><p>{</p><p> WinActivate, MediaPortal</p><p></p><p> ;Stops Media playing in MP</p><p> Send, b </p><p></p><p> [B];Switch nvidia to 24Hz mode</p><p> [COLOR="Red"]Run Rundll32.exe nvcpl.dll`, dtcfg setmode 1 1920 1080 32 24[/COLOR][/B]</p><p></p><p> Sleep, 1000</p><p> [B];No need to minize MediaPortal, hence the next line is commented out[/B]</p><p> [B][COLOR="Red"];[/COLOR][/B]WinMinimize, MediaPortal</p><p> WinActivate, CyberLink PowerDVD</p><p>}</p><p>return</p><p></p><p></p><p></p><p></p><p>Escape::</p><p>IfWinExist, CyberLink PowerDVD</p><p>{ </p><p> </p><p> IfWinNotExist, MediaPortal </p><p> {</p><p> Run "%A_ProgramFiles%\Team MediaPortal\MediaPortal\MediaPortal.exe" </p><p> }</p><p></p><p> [B];Switch nvidia back to 60Hz mode (must change to 50 if you live in Europe)</p><p> [COLOR="Red"]Run Rundll32.exe nvcpl.dll`, dtcfg setmode 1 1920 1080 32 60[/COLOR][/B]</p><p></p><p> Sleep, 1000 </p><p> ;WinRestore , MediaPortal</p><p> Run "%A_ProgramFiles%\Team MediaPortal\MediaPortal\MediaPortal.exe" </p><p> WinClose, CyberLink PowerDVD </p><p> ExitApp</p><p>} </p><p></p><p>IfWinExist, MediaPortal </p><p>{</p><p> Send, , Escape, "%A_ProgramFiles%\Team MediaPortal\MediaPortal\MediaPortal.exe"</p><p>}</p><p>return[/CODE]</p></blockquote><p></p>
[QUOTE="ObiYawn, post: 267432, member: 73988"] [b]HD_Starter script: 1) For NVIDIA cards 2) Start playback of disc automatically[/b] I made a few minor modifications to the original HD_Starter script. These can be summarized as follows: 1) The original script allowed switching ATI cards between regular (i.e. 50Hz) refresh rate and 24Hz refresh rate (the latter being better for playback of film-based content on supported displays). I included the necessary lines of code to do the same for NVIDIA based cards. 2) PowerDVD now starts playback upon launch. This assumes that you have already inserted the disc before starting PowerDVD. 3) I am not hiding MediaPortal upon launch of PowerDVD anymore. I wasn't happy having to see my desktop background while it took PowerDVD some time to launch. Additionally, I am starting PowerDVD using "RunWait" instead of just "Run". This will (purposely) disallow any further actions in MediaPortal while it takes PowerDVD a few seconds to start up. All changes to the original script have been bolded in the below code. Also, I had no need for the keyboard mapping changes that were at the very bottom and discarded them from my script. [CODE] ;http://www.keyxl.com/aaab43b/275/PowerDVD-Ultra-keyboard-shortcuts.htm ;http://www.powerdvd.com-http.com/how-to-use-powerdvd.html SetTitleMatchMode, 2 ; Start sequence IfWinNotExist, CyberLink PowerDVD { WinActivate, MediaPortal ;Stops Media playing in MP Send {b} [B];Switch nvidia to 24Hz mode [COLOR="Red"]Run Rundll32.exe nvcpl.dll`, dtcfg setmode 1 1920 1080 32 24[/COLOR][/B] [B] ;Run PowerDVD8 and have it play the inserted disc automatically ;Note 1: Change the drive letter (in this case D:) as appropriate ;Note 2: If you are not using PowerDVD8, you need to adjust the command line as appropriate [COLOR="Red"]RunWait "%A_ProgramFiles%\CyberLink\PowerDVD8\PowerDVD8.exe" /FULLSCREEN D:[/COLOR][/B] WinActivate, CyberLink PowerDVD WinMaximize Sleep, 500 [B];No need to minize MediaPortal, hence the next line is commented out[/B] [B][COLOR="Red"];[/COLOR][/B]WinMinimize, MediaPortal WinActivate, CyberLink PowerDVD } else { WinActivate, MediaPortal ;Stops Media playing in MP Send, b [B];Switch nvidia to 24Hz mode [COLOR="Red"]Run Rundll32.exe nvcpl.dll`, dtcfg setmode 1 1920 1080 32 24[/COLOR][/B] Sleep, 1000 [B];No need to minize MediaPortal, hence the next line is commented out[/B] [B][COLOR="Red"];[/COLOR][/B]WinMinimize, MediaPortal WinActivate, CyberLink PowerDVD } return Escape:: IfWinExist, CyberLink PowerDVD { IfWinNotExist, MediaPortal { Run "%A_ProgramFiles%\Team MediaPortal\MediaPortal\MediaPortal.exe" } [B];Switch nvidia back to 60Hz mode (must change to 50 if you live in Europe) [COLOR="Red"]Run Rundll32.exe nvcpl.dll`, dtcfg setmode 1 1920 1080 32 60[/COLOR][/B] Sleep, 1000 ;WinRestore , MediaPortal Run "%A_ProgramFiles%\Team MediaPortal\MediaPortal\MediaPortal.exe" WinClose, CyberLink PowerDVD ExitApp } IfWinExist, MediaPortal { Send, , Escape, "%A_ProgramFiles%\Team MediaPortal\MediaPortal\MediaPortal.exe" } return[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Blu-Ray / HD-DVD Player with PowerDVD (a working solution)
Contact us
RSS
Top
Bottom