web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Copy and paste

(0) ShareShare
ReportReport
Posted on by 10

Greetings, everyone! Already broke my head how to run the elementary loop to copy text from the program and paste text.
The task is as simple as possible, I want the system to select the text in a specified field where it is always different and paste it into another field. But no matter how I searched for such an option could not find, and using the hotkeys does not work as it should. Please help me understand!

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Instead of using Copy and Paste (like a human would) try thinking more like a bot. Use Get details of element in window (if this is a local app and not a web page) to read the data and then use Populate text field in window to write it.

     

    -------------------------------------------------------------------------

    If I have answered your question, please mark it as the preferred solution.

    If you like my response, please give it a Thumbs Up.

     

    If you are interested in Power Automate, you might want to follow me on LinkedIn at https://www.linkedin.com/in/agnius-bartninkas/

     

  • Merriguan Profile Picture
    10 on at

    I am working on a remote desktop without PowerAutomateAgent, so I cannot work with this window to its fullest extent.
    I've got the {Control}({C}) and {Control}({V}) functions figured out a bit here, but when I try to insert text after clicking on the insert area this phrase "MouseAndKeyboard.SendMouseClick.ClickA" is inserted, not the text I selected.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Is your clipboard synced with the remote desktop? Are you sure you are targetting the actual window when you send the Ctrl+C?

     

  • Merriguan Profile Picture
    10 on at

    I assume it's synchronized, because every once in a while I manage to line up the right sequence to paste the text I want. Before pasting, however, I need the text to be pasted as an addition, so I queue another mouse click, deselecting the entire previous text with the mouse - and it's this action that causes me to get an error for some reason.

  • Merriguan Profile Picture
    10 on at

    Probably there is a problem in the synchronization, I do not rule it out. How do you fix it?

  • Merriguan Profile Picture
    10 on at

    Yes, now I made sure that the text is not copied again, I do not understand what these changes depend on, because I do not make global edits. The whole process takes place in one window, that is, I select the text, then the command ctrl + C, then in the same window but in another field, I select the area and ctrl + V. It seems to be elementary, but for 3 hours I can not set it in this program.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Have you tried using keystrokes to navigate to the other field? Such as the Tab key?

  • Merriguan Profile Picture
    10 on at

    I haven't tried it, but I had no trouble switching to another field. I did have trouble implementing the copy and paste function.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    There is something that obviously interferes with your copy and paste procedure. It's not like the Ctrl+C and Ctrl+V do not work. It's something inbetween the actions that mess up your clipboard contents. So, that's where you need to look. Sending {Control}({C}) and then {Control}({V}) works. I've tried that numerous times and I know it works. 

     

    What you might need is some delay between these actions. Maybe clearing your clipboard before you copy and then checking the contents to see if they're not empty before pasting. And then also making sure there is nothing that interferes witg the flow between copying and pasting.

     

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Just curisosity, did you try "Send Text as Hardware Keys" = True?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 202

#3
David_MA Profile Picture

David_MA 180 Super User 2026 Season 2

Last 30 days Overall leaderboard