2012-07-22, 13:48
Hey, sorry for the delay in response but I wanted to try a few things before I bothered you again. I have found the problem with the ePSXe script. I already had H defined in the application as the drive, but it still wouldn't work. After trying a few things, I found out that the @SWHIDE parameter was messing up the script. This is fine because the @SWHIDE tag is not needed for mounting anyway since nothing is displayed. This script works perfectly for me as far as mounting goes, but the resolution still won't switch back to 1920x1080 before running XBMC. I'm not sure why.
As for the XBMC custom launcher, explorer.exe restarts itself as soon as the script closes it. I am not sure why nomousy works properly but explorer.exe restarts, it seems like if this is a problem with the script that my mouse pointer should come back when explorer.exe does, but it doesn't.
However, If I use nomousy+taskbarhider.exe with this script, it works perfectly. So unless you know why explorer.exe is opening as soon as it is closing, I will just use taskbarhider.exe since it does the job.
To keep it short, the only issue I'm having now is trying to get the resolution changed back to 1920x1080 after running ePSXe (or any application in a video mode other than 1920x1080) before running XBMC so that XBMC does not restart itself in 640x480 mode.
Btw, maybe you can add these working methods / scripts to the Advanced Launcher wiki in case other people want to achieve a similar effect and to save time on questions like this being asked again by other users.
Thanks again!!
Code:
HotKeySet("{ESC}", "Terminate")
If $CmdLine[0] == 1 Then
ProcessClose ( "XBMC.exe" )
RunWait ('"C:\Program Files (x86)\DAEMON Tools Lite\DTLite.exe" -mount scsi, 0,"' & $CmdLine[1] & '"')
Run('"G:\xbmc\games\ps\ePSXe.exe" -nogui -slowboot', "", @SW_HIDE)
While 1
Sleep(100)
WEnd
EndIf
Func Terminate()
ProcessClose ( "ePSXe.exe" )
RunWait('"C:\Program Files (x86)\DAEMON Tools Lite\DTLite.exe" -unmount scsi, 0')
RunWait('"C:\Program Files (x86)\12noon Display Changer\dccmd.exe -width=1920 -height=1080"', @SW_HIDE)
Run ( '"C:\Program Files (x86)\XBMC\XBMC.exe"' )
Exit 0
EndFunc
As for the XBMC custom launcher, explorer.exe restarts itself as soon as the script closes it. I am not sure why nomousy works properly but explorer.exe restarts, it seems like if this is a problem with the script that my mouse pointer should come back when explorer.exe does, but it doesn't.
However, If I use nomousy+taskbarhider.exe with this script, it works perfectly. So unless you know why explorer.exe is opening as soon as it is closing, I will just use taskbarhider.exe since it does the job.
Code:
Run("nomousy.exe /hide", "", @SW_HIDE)
Run("TaskBarHider.exe -hide -exit", "", @SW_HIDE)
Run ("C:\Program Files (x86)\XBMC\XBMC.exe")
ProcessWait ("XBMC.exe")
While 1
If Not ProcessExists("XBMC.exe") Then
If Not ProcessExists("launcher.exe") Then
Terminate()
EndIf
EndIf
Sleep(100)
Wend
Func Terminate()
Run("nomousy.exe", "", @SW_HIDE)
Run("TaskBarHider.exe -show -exit", "", @SW_HIDE)
Exit 0
EndFunc
To keep it short, the only issue I'm having now is trying to get the resolution changed back to 1920x1080 after running ePSXe (or any application in a video mode other than 1920x1080) before running XBMC so that XBMC does not restart itself in 640x480 mode.
Btw, maybe you can add these working methods / scripts to the Advanced Launcher wiki in case other people want to achieve a similar effect and to save time on questions like this being asked again by other users.
Thanks again!!