Control of screensaver via JS

control of screensaver display on all OS

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

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

  • 0 - to disable the screensaver
  • 1 - the screensaver can be enabled if the reaction delay is > 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 is > 0. Setting up the zero reaction delay disables the screensaver

  • 0 - to remove the reaction delay. At that the screensaver is disabled
  • 10000 - to enable the screensaver with the indicated delay (ms)

Example project: ScreenSaver (i3 Pro).irpz

Is this article helpful for you?