2015-09-09, 18:00
Hi,
A few weeks ago I posted here asking for help to write an script that I could use with Advanced Launcher and be able to close or suspend Kodi, launch some emuator games and after finishing reopen Kodi again.
First I tried using BigBox as a frontend because I thought It would be easier to add and scrape the rom files than using Advanced Launcher for that purpose. So, thanks to your help, I created a batch file and configured it in Advanced Launcher as a standalone executable.
It launches the BigBox application, Kodi goes into Window Mode and after quitting the frontend, Kodi goes fullscreen again, but while gaming is still running in the background.
This is the batch script that I used:
Here are the settings that I used in Advanced Launcher:
Then I changed my mind and decided to make it simple and only use Advanced Launcher to launch emulator games.I tested both batch and autoit scripts to integrate the emulators into Kodi.
First I tried with an Autoit script with the Dolphin emulator, compiled it to an .exe file, configured it in Advanced Launcher, scraped the games and everything seemed to work fine, but when I launched the emulator I got this error message:
This is the Autoit script that I used with Dolphin:
And the Advanced Launcher settings:
So, what I´m doing wrong? I would like to have my Kodi setup as integrated as posible but I´m a beginner at programming and I don´t know how to get this to work.
Sorry if I made mistakes here and there but I´m from Spain and this is not my main language.
Best regards,
A few weeks ago I posted here asking for help to write an script that I could use with Advanced Launcher and be able to close or suspend Kodi, launch some emuator games and after finishing reopen Kodi again.
First I tried using BigBox as a frontend because I thought It would be easier to add and scrape the rom files than using Advanced Launcher for that purpose. So, thanks to your help, I created a batch file and configured it in Advanced Launcher as a standalone executable.
It launches the BigBox application, Kodi goes into Window Mode and after quitting the frontend, Kodi goes fullscreen again, but while gaming is still running in the background.
This is the batch script that I used:
Code:
taskkill /f /im kodi.exe
START /WAIT "C:\Users\HTPC\Dropbox\LaunchBox\BigBox.exe"
"C:\Program Files (x86)\Kodi\Kodi.exe"
QUIT
Here are the settings that I used in Advanced Launcher:
Then I changed my mind and decided to make it simple and only use Advanced Launcher to launch emulator games.I tested both batch and autoit scripts to integrate the emulators into Kodi.
First I tried with an Autoit script with the Dolphin emulator, compiled it to an .exe file, configured it in Advanced Launcher, scraped the games and everything seemed to work fine, but when I launched the emulator I got this error message:
This is the Autoit script that I used with Dolphin:
Code:
HotKeySet("!{F4}", "Terminate")
#include <Misc.au3>
WinSetState("Kodi", "", @SW_MINIMIZE)
If $CmdLine[0] == 1 Then
ProcessClose ( "Kodi.exe" )
Run ( '"D:\Emuladores\Dolphin\Dolphin.exe" /b /U "D:\Emuladores\Dolphin\User" /e "' & $CmdLine[1] & '"', "D:\Emuladores\Dolphin\" )
While 1
Sleep(100)
WEnd
EndIf
Func Terminate()
ProcessClose("Dolphin.exe")
Run ( '"C:\Program Files (x86)\Kodi\Kodi.exe"' )
Exit 0
EndFunc
And the Advanced Launcher settings:
So, what I´m doing wrong? I would like to have my Kodi setup as integrated as posible but I´m a beginner at programming and I don´t know how to get this to work.
Sorry if I made mistakes here and there but I´m from Spain and this is not my main language.
Best regards,