Hi all!

Hi all!

I’m now using an app to lock the screen when I double tap the empty space.

But is there a way to do the same lock, just when the phone is at home screen and is motionless at a table? It would be great to just press home screen and let it auto-lock.

Thanks!

4 Commentsto Hi all!

  1. For this I think you should rely on another app, I don’t think this is the job of the launcher. Although I think it can be done with a script…

    Probably there is some tiny utility app able to do that on the Play Store, other automation app should be able to detect such condition too.

    If really you can’t find a tool, I’ll see if I can provide you with some script.

  2. Pierre Hébert ty for the help! I tried using AutomateIt, but it has no means to check that I’m at the home screen, at least that I know of.

    I know basic JS, if you could direct me to a tutorial I think I can manage to write a script (and return here to share).

  3. i know tasker can tell if you are on home screen … that part is easy. just use a profile based on ui/new window and use the IF action configured to %WIN ~ whatever the name of the homescreen is. then add another action to do what you want. the same goes for a profile based on variable value .

    from there you add an orientation context to the profile and configure it accordingly.

    once thats done you go back into the task and add a wait action to the very top. configure that.

    now remember the IF action? edit that to add an AND statement. the configure the 2nd line to %PACTIVE ~ whatever the profiles name is (profile must have a name).

    from there you can add an ELSE action followed by STOP and then END IF

  4. Curtis Sylvester Jr. Interesting to know that Tasker can check the screen currently active. I use AutomateIt because I have purchased it months ago, but it is way simpler than Tasker.

    So I’ll download the trial version of Tasker to see if I can manage to build the solution you gave.

    Many thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *