Robot stays in locked screen - avoid this or how to check if screen is locked

Hey @mm1904

As per my knowledge, background automation won’t work under the locked screen circumstances…

Steps to overcome the issue of locked screen…

  1. you can use some meaningless activities (eg. f15 hotkey) so often, by these you can avoid the system locking itself.
    Unlock Lock Screen during robot run - #20 by kuppu_samy

  2. To check your screen is locked more precisely, Use try-catch block at your first sequence.
    You can download locked windows image from Internet and use the same in “Image Exists” activity for more accuracy or you can come into a conclusion if your first activity goes into an exception.
    try{

    }catch(System.Exception){
    //ImageExists of Locked Screen
    stop the process by }

Br,
Goutham

1 Like