Announcement

Collapse
No announcement yet.

Write a string to the system's copy paste buffer?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Write a string to the system's copy paste buffer?

    Is this possible do you think. I'd like to be able to send a string (or anything for that matter) to the os's copy/paste buffer so I can paste data out of the system.

    Cheers!

    #2
    Code:
    const FString MyString = "I'll be in clipboard soon!";
    // Copy text to clipboard
    FPlatformMisc::ClipboardCopy( *MyString );

    Comment


      #3
      Wow! I'm such a C++ lamer that i'm kind of wowing myself that I actually managed to get this to work - even if it's a pure node and have to drag the data through it. Thanks so much!

      Comment


        #4
        Does this work on Android too? It's particularly more needed for android since Android users can't press Ctrl+C to copy to their clipboard.

        Comment

        Working...
        X