http://msdn.microsoft.com/en-us/library/windows/desktop/ms648394(v=vs.85).aspx
//-------------------------------------------------------------
// mouse.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdlib.h>
#include <iostream>
using namespace std;
#include <windows.h>
int _tmain(int argc, _TCHAR* argv[])
{
int x, y;
while(1)
{
cin>>x ;
cin>>y;
cout<<endl;
SetCursorPos(x,y);
}
return 0;
}
//------------------------------------------------------------
No comments:
Post a Comment