Yeah, I know that, but I prefer it will be like that.
And the problem is that it just doesn't work.
It should print "bla bla bla" if the clipboard is getting filled during the program's run-time, and when I am copying something (i.e. the clipboard is getting filled) nothing happens.
Anyway, I have discovered something interesting.
The problem is, that the clipboard from some reason, can't get filled during the program run-time.
I mean, when I am copying something while the program is running, I can't paste it, i.e. the clipboard doesn't get filled, and that's why it doesn't work.
(If I delete the EmptyCilpboard() function and I am filling the clipboard before I run the program, it works.)
But I don't know why the clipboard can't get filled during the program's run-time.
It's weird.
Actually I know how to do this by clicking, not by code.
On the console window click on the icon then properties and there you should see a checkbox for the QuickEdit mode
I've found the code to enable that option, call SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE),ENABLE_EXTENDED_FLAGS|ENABLE_QUICK_EDIT_MODE);
at the beginning of the program