Эта страница является
переводом страницы
Screensaver script. Перевод выполнен на 100%.
Controlling screensaver demonstration via JS. Start with delayed activation.
documentation was last updated on 14.2.2020
There are cases thern a user wants to control a screensaver. This article will help you with it.
Control of Screensaver Demonstration
Включить отображение скринсейвера
IR.SetVariable("System.Screensaver.Show",1)
IR.GetVariable("System.Screensaver.Show")
// 0 - turned off, 1 - turned on
A screensaver can be activated only if the "Screensaver.Enable" tag is > 0
0 - turn off screensaver
1 - a screensaver can be turned of if the 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
A screensaver can be turned on if the dealy is > 0. Setting 0 delay turns off a screensaver.
0 - delete activation delay. The screensaver is turned off.
10000 - turn on a screensaver with a selected deleay (ms)
More details in our example.