Originally posted by GaPe
When I put the cursor on some x,y coordinate then I must be able to enter some data (string or a number). There must be a WINAPI function for this. I've looked into MSDN but I found nothing.
Once you have set the position of the cursor, just use the normal input methods to get the data from the user. Here's a version using gotoxy() (I wrote it under Borland 5.5). It doesn't use the mouse input to set the position, but this is irrelevant at this point.
Code:
#include <stdio.h>
#include <conio.h>
int main(void)
{
char name[10];
clrscr();
gotoxy(15,10);
printf ("enter name>");
fgets(name, 10, stdin);
gotoxy(15,15);
printf("Hello %s", name);
return 0;
}
Is this the kind of thing you mean?