--- title: "Playlist as a Screensaver" slug: "playlist-as-a-screensaver" updated: 2025-04-29T10:00:52Z published: 2025-04-29T10:00:52Z canonical: "support.dise.com/playlist-as-a-screensaver" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.dise.com/llms.txt > Use this file to discover all available pages before exploring further. # Playlist as a Screensaver A playlist can be used as a screensaver. To achieve this a background python script must run in a separate transparent layer. This script will trigger a scenario on/off depending on user interaction and the specified timeout. 1. Create a Dise Movie via the [CX Composer](/docs/cx-composer): 1. Connect the python script as a [background script](/docs/connect-a-script): ```python import win32api trigger = "ScreensaverTrigger" while DISEScript.GetState(0) != "Terminated": x = win32api.GetLastInputInfo() z = x DISEScript.Sleep(60000) x = win32api.GetLastInputInfo() while x == z: DISEScript.SetTrigger(trigger, True) DISEScript.Log("debug", "Screensaver on") x = win32api.GetLastInputInfo() DISEScript.Sleep(1000) DISEScript.SetTrigger(trigger, False) DISEScript.Log("debug", "Screensaver off") ``` 2. [Create a layout](/docs/layouts) with a transparent layer for the background script and a layer for the screensaver and standard/interactive content. 3. [Create a trigger](/docs/triggers) named 'ScreensaverTrigger'. 4. [Create a trigger based scenario](/docs/scenarios) for the screensaver using 'ScreensaverTrigger'. 5. Schedule a playlist to the newly created scenario that will now act as a screensaver. The screensaver timeout is set to 60 seconds by default. Change the 'DISEScript.Sleep(60000) to the required timeout in ms. ## Related - [CX Composer](/cx-composer.md) - [Create a Template](/create-a-template.md) - [Connect a Script](/connect-a-script.md)