Hi Team,
I am trying to run the process in my local machine which involves more excel operations. I need to keep my desktop active or unlocked for more than half an hour. Is there any script for doing the same.
The basic requirement is to keep the system unlocked until the process completes.
If you create an object that attaches to explorer.exe, you can spy the Windows desktop, start button, system tray etc. It's a hack, but you can keep the lock at bay by, for example, opening and closing the start menu.
Create a vbscript which will keep pressing ""NUMLOCK"" after every 1 min in infinite loop.You can also call this script via BluePrism Process or run it manually one time.
For ours we utilize the ""Is Locked"" action from the BP Login Agent VBO to check if the screen is locked periodically. If the ""Is Locked"" returns a true value we then invoke the ""Unlock Screen"" action from login agent to unlock it then resume processing. Attached is a screenshot of the process logic.
Use the below vb-script code to press Numlock every defined minute. It will keep the system awake.
set wsc = CreateObject(""WScript.Shell"")
Do
'Five minutes
WScript.Sleep(X*60*1000)
wsc.SendKeys(""{NUMLOCK}"")
Loop
Define X as 1 or more.