How to copy and paste text using the clipboard?

I tried to use Windows and Forms to copy text, but the console prompts me: The type or namespace name `Forms' does not exist in the namespace `System.Windows'. Are you missing `System.Windows.Forms' assembly reference?
How can I put the text into the system clipboard?

System.Windows.Forms doesn't exist in a console application

Vw2nThHWKCrkxji.png austinv900

System.Windows.Forms doesn't exist in a console application

Yes, so I'm wondering if there is another way to achieve this?

Vw2nThHWKCrkxji.png austinv900
https://thatfrenchgamedev.com/785/unity-2018-how-to-copy-string-to-clipboard/

Don't know if this actually works but worth a try

UnityEngine.GUIUtility.systemCopyBuffer = "Hello World";

I have tested this method before, but the result is also unusable: The `.' operator cannot be applied to operand of type `UnityEngine.GUIUtility'
So far I think, if you can use System.Windows.Forms, then it can be achieved. Looking forward to when it will be available in the future.

bfvKA5gDxuqK4Lo.jpg GunYeng

I have tested this method before, but the result is also unusable: The `.' operator cannot be applied to operand of type `UnityEngine.GUIUtility'
So far I think, if you can use System.Windows.Forms, then it can be achieved. Looking forward to when it will be available in the future.

You trying to get the servers clipboard or the players?
Vw2nThHWKCrkxji.png austinv900
You trying to get the servers clipboard or the players?

I want to put the text data into the system clipboard so that I can analyze the data in Excel or Notepad, etc.

Might be better off writing it to file

Vw2nThHWKCrkxji.png austinv900

Might be better off writing it to file

Do you mean using DLL extensions?

I mean whatever you're trying to write to clipboard could you achieve your goal by just writing whatever to a file and reading it from there?

Vw2nThHWKCrkxji.png austinv900

I mean whatever you're trying to write to clipboard could you achieve your goal by just writing whatever to a file and reading it from there?

Hey, yes, I have been ignoring that you can write directly into the file, thank you for reminding.