; PowerDVD Start Skript
; close mediaportal
;ProcessClose("mediaportal.exe")
; change the Graphiccards Profile
$Program="C:\Programme\ATI Technologies\ATI.ACE\Core-Static\CLI.exe"
$Parameter= "Start Load profilename=" & chr(34) & "HD24p" & Chr(34)
ShellExecuteWait($Program,$Parameter)
; wait a second
Sleep(1000)
; start PowerDVD
Run("C:\Programme\CyberLink\PowerDVD\PowerDVD.exe")
; Maximize PowerDVD and set focus to PowerDVD
WinWait("CyberLink PowerDVD")
MouseClick("left", 1200, 540, 2, 1)
WinActivate("CyberLink PowerDVD")
MouseMove(1920, 540, 100)
; Wait untiul PowerDVD is closed
WinWaitClose("CyberLink PowerDVD")
; Set graphic card back to normal
$Program="C:\Programme\ATI Technologies\ATI.ACE\Core-Static\CLI.exe"
$Parameter= "Start Load profilename=" & chr(34) & "Film" & Chr(34)
ShellExecuteWait($Program,$Parameter)
; wait a second
Sleep(1000)
; rerun mediaportal
;Run("C:\Programme\Team MediaPortal\MediaPortal\Mediaportal.exe")
; wait until Mediaportal is open and set focus
;WinWait("MediaPortal - Hauptmenü")
;WinActivate("MediaPortal - Hauptmenü")
Exit