Taking value stored on clipboard and putting it into a variable

Hi, I have a robotic automation that looks at data on a webpage. There is a button on the page, that when clicked, stores the value of a field into the Clipboard.

I need to get that value into a variable, for further use. Is this possible?

Many thanks.

Paul

@PaulB784 , are you interrogating a Pega webpage? if so, is not possible for you to use the robot-platform integration?

@HERMA

Hi Angel - no,not a Pega website. Basically, though, it could be any web page or application even.

In this case though I have a webpage with a field on it. I cannot seem to interrogate in the normal way, but the field does have a button linked to it that copies the current value of that field to the clipboard. So, on clicking that button, is there a way to past the value to a variable (ideally) or how would I copy it to an cell in Excel?

Hope that all makes some sense. Cheers

Paul

@PaulB784

Hi Paul,

If the text is placed in the Windows clipboard by the button. I think you could use System.Windows.Forms.Clipboard.GetText Clipboard.GetText Method (System.Windows.Forms) | Microsoft Learn to get the value using a script and put it in a variable.

Did you try that?

Cheers,

Angel

@HERMA

Cheers Angel - I’ll give that a try.

Paul