Forum Archive

How to run a script when the phone does not automatically lock screen?

lds

For example, I need to run scripts ten minutes, but less than ten minutes after the pause screen lock program to run, you can prevent the screen from locking automatically lock or later also continue to run it?

JonB
console.set_idle_timer_disabled(flag)
Disable or enable the idle timer (which puts the device to sleep after a certain period of inactivity).

http://omz-software.com/pythonista/docs/ios/console.html

lds

@JonB
Add this code to solve my problem.

console.set_idle_timer_disabled(True)

Thank you!