#include #include #include #include #include #include #include "clock.h" //this function is for the timer using namespace std; int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE PrevInstance,LPSTR lpszArgument, int nFunsterStil) { int nWidth = GetSystemMetrics( SM_CXSCREEN ) - 1; // Get the width of the screen int nHeight = GetSystemMetrics( SM_CYSCREEN ) - 1; srand(time(0) ); while(!GetAsyncKeyState(VK_F8)) { SetCursorPos( (rand() % nWidth) +1,(rand() % nHeight)+1); Beep(rand(),10); cout<