Question

"On-Screen" click to keep machine awake

Hi All,

Facing an issue with the machine locking and RPA failing after 30 minutes or so.

One potential fix I want to try is having the bot move the mouse cursor.

I previously saw some setting where the cursor actually moves to the control when doing perform click... But I cannot recall where I saw this.

Any feedback is appreciated!

***Moderator Edit-Vidyaranjan: Updated Platform Capability***

Comments

Keep up to date on this post and subscribe to comments

November 18, 2019 - 6:47am

I used below piece of code to keep my session always online. Save it with .vbs in notepad & run it.

  1. Set wsc = CreateObject("WScript.Shell")
  2.  
  3. Do
  4.  
  5. 'One minute
  6.  
  7. WScript.Sleep(1*60*1000)
  8.  
  9. wsc.SendKeys("{NUMLOCK}")
  10.  
  11. Loop