Hey guys, i have done C++ before but gave up on it :P. But i've came back to it and i'm wondering what is a good way to simulate a left and right click? i guess you would start with this:
#include <iostream>
#include <windows.h>
using namespace std;
int main ()
{
int n = 1;
int x;
int y;
while (n !=NULL)
{
if(GetAsyncKeyState(VK_NUMPAD0))
(
mouse_event(MOUSEEVENT_LEFTDOWN, x, y, 100, 100));
mouse_event(MOUSEEVENT_LEFTDOWN, x, y, 200, 200));
}
if(GetAsyncKeyState(VK_NUMBPAD1))
break;
}
return 0;
}