Hi,
there are few solutions that I have applied for the issue of screen getting locked out;
1. Update security policy for Bot Machines (NOT RECOMMENDED): by requesting IT security team relax norms for bot machines in sleep and screen lock time.
2. by Using third party application or code to send key strokes to make screen awake during processing (NOT RECOMMENDED)
3. By using login agent (HIGHLY RECOMMENDED)
HOW to implement this:
have screen lock out check implemented based on time for example: after every 15 minutes send the screen lock command and login commend. This will add 10-15 minutes of processing but with proper checks implemented foreground issues occurrence can be reduced.
I have implemented the above solution for a process running for almost 3 and 1/2 hour without failing and with 100% accuracy.
------------------------------
Anshul Jhalani
Developer
Self
Asia/Kolkata
------------------------------