Skip to main content
Question

Keystrokes fail in unattended mode only after Open File/Program command (cmd batch file)

  • February 22, 2022
  • 3 replies
  • 238 views

Forum|alt.badge.img+1

Keystrokes work fine for me in unattended bot with closed remote desktop generally. However, they are not working (no error but also not doing anything, visible at least) when they follow specifically a Open Program/File command that executes a batch file in the cmd prompt. A screenshot before the keystrokes command also comes fully black, which might be related. Without the Open Program/File command, everything works including the screenshot.

Kindly help.

3 replies

Forum|alt.badge.img+19
  • Most Valuable Pathfinder
  • 2695 replies
  • February 22, 2022

Zaibi
Forum|alt.badge.img+6
  • Navigator | Tier 3
  • 128 replies
  • December 12, 2022

Dear @BrunoSampaio,

 

Regarding your question, keystrokes work independent of deployment type, however you must remember that they only operate on the element that is designed to work if that element is focused.

When it comes to screenshots, the one mistake I that comes to me is when the File directory specified does not exist on the server where you are running it.
You should consider if you are including the absolute path, i.e., the directory path that contains the username.

 

Regards,


Padmakumar
Forum|alt.badge.img+13
  • Navigator | Tier 3
  • 785 replies
  • December 13, 2022

Hi @BrunoSampaio ,

 

The main reason for getting the black screenshot is that last log-out from the RDP session was improper. You may use the enclosed batch file to perform the logout action in the runner machine.

 

Note: Please ensure that there is no other active session on the runner machine while BOT execution.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings