Back

WakeUp

JS Py
Hello World

Forces the screen to turn on the screen.

app.WakeUp()

(This has the same effect as pressing the power button in sleep mode)

See Also: GoToSleep

Example - Sleep and Wake

function OnStart()
{
    app.GoToSleep();
    setTimeout("app.WakeUp()", 5000)
}
from native import app

def OnStart():
    app.GoToSleep()
    app.SetTimeout("app.WakeUp()", 5000)
    Copy     Copy All       Run