We have an Windows based application which we are planning to run on nightly builds, Problem is when we run the script the system gets locked for every 10 min . Is there any workaround to keep system unlocked when running windows based applications.
If you're able to download "Caffeine 1.4"... It's a small software(in KB's) available on website, you can run this on system to disable the automatic locking on your system. It is freeware so you can download in your company and use, not a problem.
still if your company strictly blocks such type of softwares.
you can handle through scripting...
Develop one VBScript file to run in background.
I'm not giving exact code here, just logic
Logic is :
1.send expectation time to keep your system desktop active.
2.take present time and sent time (eg: in hrs),
3.compare both of them and enter into loop
4.make wscript to sleep for some time like (less than automatic lock time)
5.press any lockkey (numkey, scrollkey) twice
it repeats step 3... till the sent hrs completed.
once it reaches the time, it will not enter into loop to sleep and press lockkeys.
We have an Windows based application which we are planning to run on nightly builds, Problem is when we run the script the system gets locked for every 10 min . Is there any workaround to keep system unlocked when running windows based applications.
Regards,
SaranKumarV
Hi SaranKumar,
Please follow the below instructions:
Create a simple vbs file having code to press numlock key and run that vbs file
Edit one registry key “DisableLockWorkstation =1” to disable locking
Regards,Moin