2012-06-30, 17:25
(2012-06-30, 15:52)Angelscry Wrote:(2012-06-30, 11:36)Pissa Wrote: It didn't work!I will try to found time to install powerDVD 12 on my Windows 7 system this week-end, and if I found the right way to proceed, I will post here the corresponding working script.
I think the problem is with the many processes that PowerDVD starts. In details:
- PowerDVD.exe -> close after closing the software
- PowerDVD12.exe -> close after closing the software
- PowerDVD12Agent.exe -> doesn't close after closing the software, stay in background
- PowerDVD12DMREngine.exe -> doesn't close after closing the software, stay in background
- PowerDVD12ML.exe -> close after closing the software
I tried to add PowerDVD.exe and PowerDVD12ML.exe to the "ProcessWaitClose" list, and to kill PowerDVD12Agent.exe and PowerDVD12DMREngine.exe, but no lucky!
With other programs, your script works perfectly!
Here is the working the autoit working script :
Code:
ProcessClose ("XBMC.exe")
Run ('"C:\Program Files (x86)\CyberLink\PowerDVD12\PDVDLaunchPolicy.exe" E:')
ProcessWait ("PowerDVD12.exe")
ProcessWaitClose ("PowerDVD12.exe")
ProcessClose ("PowerDVD12Agent.exe")
ProcessClose ("PowerDVD12DMREngine.exe")
Run ("C:\Program Files (x86)\XBMC\XBMC.exe")
From my previous script it was missing the ProcessWait ("PowerDVD12.exe") command. We need to wait PowerDVD12.exe to be started before checking if it is close or not. I also have added commands to automatically close other PowerDVD process and clean/simplify the overall code.