2013-02-12, 15:33
(2013-02-12, 15:19)bakito Wrote: hey angel sorry to bother but I quickly adapt a autoit script to stop xbmc and launch hyperspin ( then hyperspin itself restart xbmc) but I missed something at the end so the script closed correclty when hyperspin is closed ( for now I can still view the icon of autoit in "paused" state)Remove the While loop :
here is my script:
If $CmdLine[0] == 1 Then
ProcessClose ( "XBMC.exe" )
Run ( '"J:\emulations\retro\HyperSpin.exe" "' & $CmdLine[1] & '"', "J:\emulations\retro\" )
While 1
Sleep(100)
WEnd
EndIf
what should I add to make it closed?
thanks!
Code:
If $CmdLine[0] == 1 Then
ProcessClose ( "XBMC.exe" )
Run ( '"J:\emulations\retro\HyperSpin.exe" "' & $CmdLine[1] & '"', "J:\emulations\retro\" )
EndIf