Hi guys!
I have a problem with the work of the clipboard.
Said further code, according to the tests, indicating that the clipboard contains an empty string. That is, the two conditions return true.
What could be the problem?
add_str(Clipboard.GetText());
if (Clipboard.GetText() == "") add_str("22");
if (Clipboard.GetDataObject() == null) add_str("222");
(add_str(string str) - a function for adding text to the screen, for tests)