2012-01-13, 15:29
Energy2k8 Wrote:Thx for the quick reply, will try it when i get home later this afternoon.Normaly, yes this script will works with your Lord of the Rings Online game. The ProcessWaitClose function pause the script until the designed process is closed. So XBMC will not be started before TurbineLauncher.exe and Lotroclient.exe will be closed (or not running).
I agree it is more simple your way, but will it also solve my immediately XBMC launching problem??
I also did a launchfile for Morrowind.exe and that one worked as intended. It closed XBMC, launched Morrowind and only after i closed Morrowind it launched XBMC again.
Somehow the same procedure doesn't work on the TurbineLauncher.exe. The processes required to start Lotro are as followed:
Clicking the default shortcut to lotro starts the Turbinelauncher.exe
After typing my credentials it starts lotroclient.exe
If the script not working, maybe the Lord of the Rings Online game use a third process to run. If so add another ProcessWaitClose function for this process.
What could happen also is that the script run to fast and not have time to detect running process. In this case you could add more function controls like ProcessWait() that will pause the script until a designed process is running. Script could be :
Code:
ProcessClose ( "XBMC.exe" )
Run ( "D:\Games\The Lord of the Rings Online\TurbineLauncher.exe" )
ProcessWait ( "TurbineLauncher.exe" )
ProcessWait ( "Lotroclient.exe" )
ProcessWaitClose ( "TurbineLauncher.exe" )
ProcessWaitClose ( "Lotroclient.exe" )
Run ( "C:\Program Files (x86)\XBMC\XBMC.exe", "", @SW_MAXIMIZE )