Skip to main content
Solved

Different behaviour when connected to the Virtual Machine


Forum|alt.badge.img+11
  • Flight Specialist | Tier 4
  • 82 replies

Hi everyone,

 

I have developed a bot that exports an Excel template to a PDF file. One of the steps is to reset all page breaks, and then to set a page break in a specific line of the Excel file.

I have set a simulate keystrokes : [alt down]pba[alt up] then [alt down]pbi[alt up] (with a few seconds of wait time with the package delay)

It works correctly when I am connected to the virtual machine : the end of the page is blank, and then the rest of the text is in a new page.

When I am not connected to the virtual machine, it fails and the text follows immediately, without new page/page break.

I have no explanation on why that happens.

When I process a series of Excel files, if I am not connected it will fail until I connect, and then start working from that moment on.

What could be the reason behind that ?

Best answer by Augustin

I don’t know why, if I disable delays and set the keystroke duration to 15ms (instead of 10) it works in both cases...

View original
Did this topic help answer your question?

2 replies

Forum|alt.badge.img+11
  • Author
  • Flight Specialist | Tier 4
  • 82 replies
  • Answer
  • April 8, 2025

I don’t know why, if I disable delays and set the keystroke duration to 15ms (instead of 10) it works in both cases...


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+10
  • Automation Anywhere Team
  • 570 replies
  • April 8, 2025

Sending keystrokes too fast was the first error I made after joining Automation Anywhere.   😅

With many VMs, you’re using a fraction of the power of the host computer. Keep that in mind. Many companies also have the bot developers create the bots in the VM just to avoid these kinds of surprises.


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