2021-03-22, 22:15
(2021-03-20, 23:37)teeedubb Wrote:(2021-03-20, 09:26)tannyl Wrote:(2021-03-20, 00:14)teeedubb Wrote: I think this would be better suited in the pre/post steam scripts via jsonrpc.
This thread has info on how to disable/enable the screensaver. In my brief search I couldn't find anything on how to disable/enable cec, so you'll need to do some digging or post a thread asking for help.
https://forum.kodi.tv/showthread.php?tid=354784
I had tried looking into this, using the pre/post scripts, but did not get that far due to having kids that demand attention.
Is there any way to store a variable in the pre script and later retrieve that variable in the post script? (other then just writing to a file, which I guess would be an option)
I would like to be able to save the selected screensaver settings before disabling them in the pre script, and then restore them in the post script.
Otherwise I have to hardcode the settings into the post script, and remember to change them, if ever the screensaver settings are changed in Kodi.
I personally would use a file to store the variable.
I figured out why I was having problems getting things to work.
I expected the the "pre" and "post" scripts was python scripts run inside Kodi, but now I see that is not the case.