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.
18 thoughts on “StayAwake – Locked screen will never affect your execution”
‘============================================================================
‘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}”
WScript.Sleep(119000)
i=1
next
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.
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 (http://www.advancedqtp.com/downloads/), however we do it for free.
Regards,
Bharat Kakkar
I really like and appreciate your blog post.Thanks Again. Will read on…
Really value you sharing this blog post.Really thanks! Cool.
Thank you for your site.Really thank you! Really Cool.
Major just post. Would like more.
StayAwake – Locked screen will never affect your execution | Technodivine
I am so thankful for your post.Really thanks! Cool.
Awesome blog article.Really thanks!
I am so happy to read this. This is the type of manual that needs to be given and not the accidental misinformation that’s at the other blogs. Appreciate your sharing this best doc.
WHkdsV Hey, thanks for the blog article. Want more.
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.
Thank you for your blog article.Really looking forward to read more. Much obliged.
Appreciate you sharing, great blog.Really thank you! Keep writing.
This solution will cause problem when you execute codedUI scripts on CrossBrowsers using Selenium components.
It should not, did you try that, if so please report the issue you faced.
“I really like and appreciate your post. Much obliged.”