2012-07-10, 09:59
(2012-07-10, 07:18)malte Wrote:Thanks, I'll check that out...Tomkun Wrote:I noticed that in windows when I use popen, that after quitting the game XBMC doesn't get focus back and stays minimised in the task bar. Is that normal behaviour and is it fixable? In the meantime I'm going to have to disable popen.I can't reproduce this here. Not with and not without Popen. Maybe you have to change the "Use fullscreen window" setting in XBMC?
Quote:I'm not quite sure what you are doing there; it all looks a bit over my head... I was thinking of something along the lines of how the Home Cinema Experience script manages home automation...Tomkun Wrote:Also a feature request: is it possible to trigger an event using the HTTP API (or JSON) when starting a game? That would allow me to do some really cool stuff with EventGhost!This should already be possible. You could use wget to fire the commands to the json api. On windows you have to install wget.exe yourself, on Linux it should be already available. These are examples of the commands when you want to quit XBMC per json:
I tested these commands from a batch file. But I guess you could also use them as pre launch command.Code:Linux
wget -q -O/dev/null --header='Content-Type: application/json' --post-data='{"jsonrpc": "2.0", "method": "Application.Quit", "id":"1"}' http://localhost/jsonrpc
Windows (http://sourceforge.net/projects/gnuwin32/files/wget/)
"%PROGRAMFILES%\GnuWin32\bin\wget.exe" -q --header="Content-Type: application/json" --post-data="{\"jsonrpc\":\"2.0\", \"method\": \"Application.Quit\", \"id\":\"1\"}" http://localhost/jsonrpc
http://forum.xbmc.org/showthread.php?tid...#pid790523