Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  Ad
Language: C/C++
Code:
#include <iostream>
#include <windows.h>

using namespace std;

//My Autoclicker Badz

int x=0, y=0, cps;
bool click=false;

Khuppa Clicker()
{
     cout << "How Much CPS would u like to click (1-20 CPS recommended):" << endl;
     cin >> cps;
}
Khuppa Clicker()
{
     while (1)
     {
          if(GetAsyncKeyState(VK_LBUTTON)) // Left button of the mouse
          {
               click = true;
          }
          
          if(GetAsyncKeyState(VK_RBUTTON)) //Right button of the mouse
          {
               click = false;
          }
          
          if(click == true)
          {
               mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0 , 0);
               mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0 , 0);
               Sleep(1000/cps);
          }
     }
}
int main()
{
     Menu();
     Clicker();
}
Comments: