2013-08-01, 17:31
(2013-08-01, 16:13)REralte Wrote: Can anyone here please can help me I'm trying to rum PCSX2 in advanced launcher to open the emulator and close XBMC. This is the script im running but it say the scrip is paused, any help please.But at which step the script is paused?
#include <Misc.au3>
HotKeySet("{ESC}", "Terminate")
If $CmdLine[0] == 1 Then
_MouseTrap(@DesktopWidth, @DesktopHeight, @DesktopWidth, @DesktopHeight)
ProcessClose ( "XBMC.exe" )
Run ( '"C:\Program Files (x86)\PCSX2 0.9.7\pcsx2-r3878.exe" --nogui "' & $CmdLine[1] & '"', "C:\Program Files (x86)\PCSX2 0.9.7\" )
While 1
Sleep(100)
WEnd
EndIf
Func Terminate()
ProcessClose ( "pcsx2-r3878.exe" )
Run ( '"C:\Program Files (x86)\XBMC\XBMC.exe"' )
Exit 0
EndFunc