General Issues - Tips & TricksTechnodivine Tools

StayAwake – Locked screen will never affect your execution

In Continuation to “LOCKED SYSTEM N AUTOMATING UI TESTS” series, this utility is to give you freedom from locked screen issue without even changing any network/local system settings. No matter whether you are showing a presentation or you are executing a script, your screen will never darken again and that’s too without getting into system settings. You need not to have admin privilege to run this small utility.

The utility wouldn’t change any of your registry settings nor would it try to override group policy. Therefore it would not put security on stake. You will never get into a situation to run towards your system to avoid screenlock, you would need not to sit before your system while executing the scripts to avoid failures due to failures due to screenlocks. No matter you whether which automation tool you are using. Be it QTP (HP Quick test), visual studio (Coded UI), Test complete or any other StayAwake would work for you.

If you liked this post, say thanks by sharing it.

18 thoughts on “StayAwake – Locked screen will never affect your execution

  1. ‘============================================================================
    ‘Function to keep the screen awake(Double click on this file, so that
    ‘ system will not lock automatically

    Set WSHShell = WScript.CreateObject(“WScript.Shell”)
    For i = 1 to 2
    WSHShell.SendKeys “{Numlock}”
    WSHShell.SendKeys “{Numlock}”

    1. Thanks Uma for alternative script to keep screen awake. However there is a possibility that running automation script might be using the numlock function which might be unavailable for that point of time.

  2. Thanks Uma! Indeed this will work too.

    I believe that “if someone has a problem there is always the other way to solve the problem and there is always a better way to solve the problem”

    As you had one solution and I had another, there would be many other ways to do the same, however the intend was to provide more flexibility and efficient way to the user by providing a tool in hand. Executing a script would always need to end task when not required and manual edit would be required too (in case of time for execution is to be changed).

    Also, there are people selling such tools for money (, however we do it for free.

    Bharat Kakkar

  3. I simply want to say I’m very new to blogging and truly loved your page. Very likely I’m going to bookmark your website . You definitely come with fantastic articles. Thanks a bunch for revealing your web-site.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.