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.


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

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!

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.