2012-07-01, 02:05
(2012-07-01, 00:20)chris295 Wrote: If I remove the terminate function from the script, how would I go about keeping the portion of the script instructing AutoIt to restore XBMC from suspend mode when nestopia is closed? Since these lines are part of the terminate function:Something like this :
Func Terminate()
ProcessClose ( "nestopia.exe" )
Run ( 'pssuspend -r "XBMC.exe"')
Exit 0
EndFunc
Where should I put them?
Code:
Run ( 'pssuspend "XBMC.exe"')
Run ( 'pssuspend "Xpadder.exe"')
Run ( '"G:\XBMC\games\nes\nestopia.exe" "' & $CmdLine[1] & '"', "G:\XBMC\games\nes\" )
ProcessWait ("nestopia.exe")
ProcessWaitClose ("nestopia.exe")
Run ( 'pssuspend -r "Xpadder.exe"')
Run ( 'pssuspend -r "XBMC.exe"')