HotKeySet("{ESC}", "Terminate") If $CmdLine[0] == 1 Then ProcessClose ( "XBMC.exe" ) Run ( '"E:\Program Files (x86)\PCSX2 1.0.0\pcsx2-r5350.exe" --nogui --fullscreen "' & $CmdLine[1] & '"', "E:\Program Files (x86)\PCSX2 1.0.0\pcsx2-r5350\" ) While 1 Sleep(100) WEnd EndIf Func Terminate() ProcessClose ( "pcsx2-r5350.exe" ) Run ( '"C:\Program Files (x86)\XBMC\XBMC.exe"' ) Exit 0 EndFunc