Please help i'm trying to click on the screen just inside the box coordinates of (x,y) but it clicks everywhere on the screen!!
void cursorpoint()
{
#include "cursor.h"
int x ;
int y ;
//x will have the x position and y will have the y position of mouse where clicked.
for(;;)
{
where_mouse(x,y); //this will wait for mouse to be clicked
gotoxy(x,y); //This will position the cursor at x,y on the screen
if (x >= 11 && x <= 69 && (x % 2) == 0 && y >= 6 && y <= 14 && (y % 2) != 0 ) break; // x odd numbers
{
cout << (char)219;
cout << x << y;
break;
}
}
}