// ConsoleApplication2.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include "windows.h"
int _tmain(int argc, _TCHAR* argv[])
{
for (;;)
{
SetCursorPos(768, 640);
mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_ABSOLUTE, 768, 640, NULL, NULL);
mouse_event(MOUSEEVENTF_LEFTUP, 768, 640, NULL, NULL);
Sleep(2000);
}
return 0;
}