#include <bits/stdc++.h>
#include <windows.h>
#include <cmath>
#include <winuser.h>
using namespace std;
POINT P;
int main()
{
srand(time(0));
for (int i = 1; i <= 50; i++)
{
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
GetCursorPos(&P);
SetCursorPos(P.x+(rand()%50),P.y+(rand()%10));
Sleep(50);
}
}
By signing up a HFOJ universal account, you can submit code and join discussions in all online judging services provided by us.