omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Disabling auto-lock on iPhone with Pythonista

    Pythonista
    2
    3
    950
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Plundmark
      Plundmark last edited by

      Hi,
      Does anyone have a full script for disabling the Auto-lock timer function (in Settings/Display & Brightness) on iPhone?

      My experience wuth Pythinista is limited. I have tried the following but with no success (settings remains unchanged):

      #Stop Autolock
      import console
      console.set_idle_timer_disabled(True)

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        You cannot change the settings app setting from pythonista.

        The function disables the idle timer for pythonista only (and only for this launch) so that your script will not be interrupted by going to sleep.

        1 Reply Last reply Reply Quote 0
        • Plundmark
          Plundmark last edited by

          Thanks JonB,
          Get it. I guess I will have to look for a URL solution then...

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors