Skip to main content

Controlling screensaver display through JS. Starting with a delay.

Documentation updated 01.01.2024

Sometimes users need to be able to control this item. This article describes how to provide that capability.

Controlling screensaver display​

Enable screensaver display

    
IR.SetVariable("System.Screensaver.Show",1)
IR.GetVariable("System.Screensaver.Show")
// 0 - turned off, 1 - turned on

The screensaver can be enabled only if the "Screensaver.Enable" tag > 0

  • 0 - turn off the screensaver
  • 1 - the screensaver can be enabled if the activation delay > 0
   
IR.SetVariable("System.Screensaver.Enable",0)
IR.SetVariable("System.Screensaver.Enable",10000)
IR.GetVariable("System.Screensaver.Enable")
// 0 - can't be turned on, 10000 - time, can be turned on or off

The screensaver can be enabled if the delay > 0. Setting a zero delay turns off the screensaver.

  • 0 - remove the activation delay. This turns off the screensaver.
  • 10000 - enable the screensaver with the specified delay (ms).

For more details, see our example.