2023-08-22, 04:23
(2023-08-21, 23:18)Patkino Wrote: How can I bind a key to execute screensaver (preview is working perfectly, turns of the tv and any key turns it on)?
Tried activatewindow(screensaver) in keymap, but it gives an error "Screensaver: Turn off. Unable to load addon. Unknown error"
Actually I simply need a shortcut to that "preview" button...
ActivateWindow is not the correct function to activate the screensaver, it loads windows
what you want is ActivateScreensaver()
reference - https://kodi.wiki/view/List_of_built-in_functions