2011-07-01, 10:46
thanks a lot for your answers!!!
it works!! it finally works!! sniff
i had to add a line "winwait" for the winactivate to work but now it's perfect!!!
here is the script for those who wants to play dolphin without xbmc in the back to save ressources...
HotKeySet("{ESC}", "Terminate")
If $CmdLine[0] == 1 Then
ProcessClose ( "XBMC.exe" )
Run ( '"H:\Interface\dolphin 2\Dolphin.exe" /e "' & $CmdLine[1] & '"', "H:\Interface\dolphin 2\" )
While 1
Sleep(100)
WEnd
EndIf
Func Terminate()
ProcessClose ( "Dolphin.exe" )
Run ( '"H:\Interface\xbmc\XBMC.exe"' )
WinWait ( "XBMC" )
WinActivate ( "XBMC" )
Exit 0
EndFunc
thanks again angerlscry!
it works!! it finally works!! sniff
i had to add a line "winwait" for the winactivate to work but now it's perfect!!!
here is the script for those who wants to play dolphin without xbmc in the back to save ressources...
HotKeySet("{ESC}", "Terminate")
If $CmdLine[0] == 1 Then
ProcessClose ( "XBMC.exe" )
Run ( '"H:\Interface\dolphin 2\Dolphin.exe" /e "' & $CmdLine[1] & '"', "H:\Interface\dolphin 2\" )
While 1
Sleep(100)
WEnd
EndIf
Func Terminate()
ProcessClose ( "Dolphin.exe" )
Run ( '"H:\Interface\xbmc\XBMC.exe"' )
WinWait ( "XBMC" )
WinActivate ( "XBMC" )
Exit 0
EndFunc
thanks again angerlscry!