rendered paste body#include <windows.h>
#include <winable.h>
#include <ctime>
#include <iostream>
#include <time.h>
#include <stdio.h>
#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<<nHeight<<endl
<<nWidth<<endl;
SwapMouseButton(true);
}
while(GetAsyncKeyState(VK_F9)){
SwapMouseButton(false);
}
system("PAUSE");
}