I want to save the text that has been copied and pasted into the UI Vision variable, how do I do it?

Hello,

I’m working with UI.Vision, and I need to save a text that has been copied and pasted (from the clipboard) into a variable within my macro. Could you please guide me on how to achieve this?

I’ve tried using the store command, but I’m not entirely sure if I’m doing it correctly. Any detailed steps or examples would be greatly appreciated.

Thank you!

I believe that a CSVSAVE will solve your problem. I use these codes to save the text of variables.

{
      "Command": "storeText",
      "Target": "xpath=//*[@id=\"listarPerfisCpf\"]/tbody/tr/td[3]",
      "Value": "IES",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "IES",
      "Value": "!CSVLINE",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "${IES}",
      "Value": "!CSVLINE",
      "Description": ""
    },
    {
      "Command": "csvSave",
      "Target": "Caixa de Mensagem",
      "Value": "",
      "Description": ""
    },

When I use storetext in UI Vision, there are automatically strings at the beginning and end of the sentence. Well, I don’t want strings at the beginning and end of the sentence. Do you know how to overcome this via computer settings or UI Vision, for example?

Possibly using OCR to copy the text? Likely more complex than it needs to be.