2012-03-02, 22:34
dirtymurt Wrote:Angelscry, you are a geniusGreat !!!!
I had to make a small adjustment, the process is called dolphin.exe not dolphin-emu.exe
here is the complete script, thanks again
HotKeySet("{ESC}", "Terminate")
If $CmdLine[0] == 1 Then
ProcessClose ( "XBMC.exe" )
Run ( '"C:\Program Files\Dolphin-win-x64-v3.0-424\Dolphin.exe" /b /e "' & $CmdLine[1] & '"', "C:\Program Files\Dolphin-win-x64-v3.0-424\" )
While 1
Sleep(100)
WEnd
EndIf
Func Terminate()
ProcessClose ( "dolphin.exe" )
Run ( '"C:\Program Files (x86)\XBMC\XBMC.exe " -p' )
Exit 0
EndFunc