POINT myCursor; GetCursorPos(&myCursor);
myCursor.x myCursor.y
#include <windows.h>
#include <iostream>
using namespace std;
int main()
{
while(1)
{
if(GetAsyncKeyState(VK_F9))
{
POINT p;;
cout<< " X: " << p.x << " Y: " << p.y <<endl;
}
Sleep(250);
}
}