If you are trying to do console programming then you should be using the MS-Windows Console Functions . Moving the mouse pointer to some screen location will not allow you to start typing at that location, you have to move the cursor
Example console program
#include <iostream>
#include <Windows.h>
using std::cout;
int main()
{
HANDLE StdOut = GetStdHandle(STD_OUTPUT_HANDLE);
COORD c = {5,10};
SetConsoleCursorPosition(StdOut,c);
cout << "Hello World\n";
}
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
So you're trying to write a 'bot which might, for example, automatically click into the fields on a displayed web-page and enter specific text data for you?
Anyway as far as your mouse-link, the first note at the top of the page says the function has been superseded, and provides a link to the updated function to use instead. As far as "getting code to compile using your compiler", it looks like you're one of very few users on this forum using the latest and greatest tools on Windows, so what exactly is the problem you're having compiling your code?
raptr_dflo
Practically a Master Poster
602 posts since Aug 2010
Reputation Points: 76
Solved Threads: 82