Posted: 13 Feb 2018 17:58 EST Last activity: 14 Feb 2018 23:13 EST
Clipboard used by RPA
We have a situation. We are leveraging the clipboard to get text from a control (by clicking given copy button). Then, we have a power shell script launching the RPA bot. The get text function only works when the PC is focused/active. The get text function failed as soon as we disconnect from that PC.
At this time, we are unable to get the text from the control (control.text does not work). I have tried passing the control into the script component (Windows.Window), but no luck of getting the text as well.
Any suggestions can resolve this issue? Any help is greatly appreciated.
Disconnecting from a PC is going to generally cause problems for automations. Instead of using the clipboard, which is dependent on Windows being active, try using a container variable internal to the automation.