2013-12-05, 13:34
This may be a stupid question but I did not find a solution in any of the forums.
I have created an XBMC addon (python-script) which launches a GUI window and displays some status information.
That script is launched from an external device with the JSON RPC-call
where 'params' contains the status parameters.
The user needs to manually close the window via a button.
This works as expected: The external device can launch the GUI and display the requested status info.
The problem is the external device may send another status message later on.
At that point I do not know if my old Window is still shown on the screen or not.
If I just send another "Addons.ExecuteAddon(params)" I get a stack of multiple windows on XBMC
Question:
- is there a way to send data to an add-on that is currently running?
I know about "Input.ExecuteAction" and "Input.SendText" but they
a)are too limited to pass complex status info
b) are sent to whatever window is currently shown. I also have not found a way to reliably get the windowid of the addon-script I started with Addons.ExecuteAddon()
Any ideas?
I have created an XBMC addon (python-script) which launches a GUI window and displays some status information.
That script is launched from an external device with the JSON RPC-call
Code:
Addons.ExecuteAddon(params)
The user needs to manually close the window via a button.
This works as expected: The external device can launch the GUI and display the requested status info.
The problem is the external device may send another status message later on.
At that point I do not know if my old Window is still shown on the screen or not.
If I just send another "Addons.ExecuteAddon(params)" I get a stack of multiple windows on XBMC
Question:
- is there a way to send data to an add-on that is currently running?
I know about "Input.ExecuteAction" and "Input.SendText" but they
a)are too limited to pass complex status info
b) are sent to whatever window is currently shown. I also have not found a way to reliably get the windowid of the addon-script I started with Addons.ExecuteAddon()
Any ideas?