Code:
#include <iostream>
#include <windows.h>
using namespace std;
int main ()
{
int input = 0;
cout << "1. Left clicker\n";
cout << "2. Right clicker\n";
cout << "3. \n";
cout << "4. \n";
cout << "5. \n",
cout << "6. \n";
cout << "7. \n";
cout << "8. \n",
cout << "9. \n",
cout << "10. \n";
cin >> input;
if(input == 1)
{
system("cls");
cout << "Press ESC to stop. Starting in 5 secounds.\n";
Sleep(5000);
while(!GetAsyncKeyState(VK_ESCAPE))
{
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
Sleep(80);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
Sleep(1000);
}
}
}
Here is the code I'm currently using.. But I've also tried this code, not working..
Code:
#include <iostream>
using namespace std,
int main ()
{
cout << "work PLZ";
}