Robot SendKeys not available when running VDI in the background.

I am always indebted.
Please let me discuss the processing used for robot execution.
I started VDI in the background and let it handle the robot.
As a result, an error occurred when SendKeys was performed in the middle of processing.
Is it possible to perform a key operation (Enter or key input) in the background without using SendKeys?

I would like to know if there is an alternative to SendKeys that can be executed in the background.

@ShunsukeM6155 SendKeys should not be used unless other methods are not working. You should always try things like setting the text property before using SendKeys. Depending on the type of application, you might also need to use the RaiseEvent method to get the browser to recognize input after setting the text property.

With that being said, SendKeys can sometimes require applications to be in-focus since it is basically performing the actions you would take as a user. You might try that if you are set on the idea of using SendKeys.

@ThomasSasnett

Thanks for the reply.

I would like to have the robot hit the Enter key.

Is there any way to achieve this without using SendKeys?

@ShunsukeM6155 Do you need to use the “Enter” key, or is there a control whose click method you can call? What type of application is this? Is this a web-based application, a Windows-based application (i.e., an exe), or is it a terminal emulator?

@ThomasSasnett

A command-line-like application that runs in your browser.

It only accepts key input, so you will need to enter the Enter key.

@ShunsukeM6155 I would do some deeper investigation into the application. It might be possible to trigger the key using JavaScript. You might contact your Pega account resource and schedule some time with either one of our partners or our professional services to spend some time looking at this with you.

@ThomasSasnett

You might contact your Pega account resource and schedule some time with either one of our partners or our professional services to spend some time looking at this with you.

Excuse me. I don’t understand what exactly I should do.
Should I list the available meeting times here?

@ShunsukeM6155 We do not have the ability to meet directly here. Do you have someone you or your organization has contact with that works for Pega or one of our partners? You might contact them to get some assistance hands-on. You can also open a support request and they might be able to direct you to the appropriate contact.