This is the B4i solution for this thread. In an OS specific class for B4i you define this method.
in an OS specific class (not parent folder):
Sub KeepScreenAlive(active As Boolean)
Main.App.IdleTimerDisabled = active
End Sub