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?
How to copy and paste text using the clipboard?
System.Windows.Forms doesn't exist in a console application
austinv900
System.Windows.Forms doesn't exist in a console application
Yes, so I'm wondering if there is another way to achieve this?
https://thatfrenchgamedev.com/785/unity-2018-how-to-copy-string-to-clipboard/GunYeng
Yes, so I'm wondering if there is another way to achieve this?
Don't know if this actually works but worth a try
UnityEngine.GUIUtility.systemCopyBuffer = "Hello World";
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.
You trying to get the servers clipboard or the players?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.
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
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?
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.