Contents x
- CX Portal
- Getting Started
- Displays & Players
- Content Scheduling
- Media Management
- Admin
- Reports
- Dise Player
- Dise One Template SDK
- Downloads
- Release Notes
- CX Portal
- Upcoming CX Portal Release Dates
- CX Portal Release V27
- CX Portal Release V26
- CX Portal Release V25
- CX Portal Release V24
- CX Portal Release V23
- CX Portal Release V22
- CX Portal Release V21
- CX Portal Release V20
- CX Portal Release V19
- CX Portal Release V18
- CX Portal Release V17
- CX Portal Release V16
- CX Portal Release V15
- CX Portal Release V13
- Dise One
- Premium
- Lite
- CX Composer
- CX Portal
- Scripting & Integrations
- CX Composer
Playlist as a Screensaver
Article summary
Did you find this summary helpful?
Thank you for your feedback
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.
- Create a Dise Movie via the CX Composer:
- Connect the python script as a background script:
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")
Python
2. Create a layout with a transparent layer for the background script and a layer for the screensaver and standard/interactive content.
3. Create a trigger named 'ScreensaverTrigger'.
4. Create a trigger based scenario 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.
Was this article helpful?
Thank you for your feedback! Our team will get back to you
How can we improve this article?
Your feedback
Comment
Comment (Optional)
Character limit : 500
Please enter your comment
Email (Optional)
Email
Please enter a valid email
Related articles