
Originally Posted by
lilneo
It looks C&P'd.
Code:
int main()
{
int Tx = GetSystemMetrics(SM_CXSCREEN); // Gets the screen X and Y to a int variable
int Ty = GetSystemMetrics(SM_CYSCREEN);
Since when does MSVC++ not indent right after an open bracket? (When you paste)
anyway, tl;dr all the code, and don't feel like compiling it to run. I assume it moves your mouse around on the screen or something just to screw with you.
~lilneo
Dude, look in the thread. It clearly says it was compiled with Wx DEV C++

not Microsofts IDE besides, i got those functions from Microsoft documentations, where searching on how to get the screens X and Y...
I don't know how you can have difficulties understanding the code. It is even noob friendly.
Srand seeds the random function, rand generates random int's from a value of 1 (duo to the +1 i added) to the max X/Y...
Then it populates the windows function, (from windows.h) with X and Y, and basically it runs it in a infinite loop. The functions in your quote kinda explain themselves i guess.