WilliamHarlow

Untested Autoclicker have yet to know if it works.

Aug 26th, 2021
1,236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 6.41 KB | None | 0 0
  1. #include <iostream>
  2. #include <Windows.h>
  3. #include <string>
  4. using namespace std;
  5. /* colors for rainbow
  6. 0 = Black
  7. 1 = Blue
  8. 2 = Green
  9. 3 = Aqua
  10. 4 = Red
  11. 5 = Purple
  12. 6 = Yellow
  13. 7 = White
  14. 8 = Gray
  15. 9 = Light Blue
  16. A = Light Green
  17. B = Light Aqua
  18. C = Light Red
  19. D = Light Purple
  20. E = Light Yellow
  21. F = Bright White
  22. 7 = F = bright white white
  23. system("color 02");For example, this is black green text
  24. */
  25. int x = 0, y = 0, cps;
  26. bool click = false;
  27. string rl;
  28.  
  29. void BootMenu()
  30. {
  31.     cout << " oOOOOo   oOo   .o000o.  .o000o.  .oOOOo. \n";
  32.     cout << "OO    OO  OOO  OO    OO OO    OO  OO   OO \n";
  33.     cout << "OO   .o   OOO  OO    OO OO    OO  OO   OO \n";
  34.     cout << "OO.oo     OOO  OO    OO OO    OO  OO   OO \n";
  35.     cout << "OO.oo     OOO  OO    OO OO    OO  OOoOoO  \n";
  36.     cout << "OO   o.   OOO  OO    OO OO    OO  OO      \n";
  37.     cout << "OO    OO  OOO  OO    OO OO    OO  OO      \n";
  38.     cout << "OO    Oo  OOO  OO    OO OO    OO  OO      \n";
  39.     cout << " oOOOOo   OOO   OooooO    OoooO   OO      \n"; //picture art for start.
  40.  
  41.     cout << "\n \n \n";
  42.     cout << "  " << endl;
  43.     cout << "  " << endl;
  44.     system("color 04");
  45.     cout << "Booting up";
  46.     Sleep(300);
  47.     system("color 06");
  48.     cout << ".";
  49.     Sleep(250);
  50.     system("color 02");
  51.     cout << ".";
  52.     Sleep(200);
  53.     system("color 03");
  54.     cout << ".\n";
  55.     cout << "Bloopclicker v2 \n made by Bloopdog himself. \n";
  56.     system("color 01");
  57.     cout << "Toggle on key is up arrow, toggle off key is down arrow. \n ";
  58.     system("color 04"); // makes the background black and text red
  59.  
  60. }
  61.  
  62. void LeftClicker() { // leftclicking function
  63.  
  64.     while (1) {                             //while 1, so basically forever
  65.         if (GetAsyncKeyState(VK_DOWN))      //checks for down arrow being pressed
  66.         {
  67.             click = true;                   //if down arrow pressed, turns click bool to true
  68.         }
  69.         if (GetAsyncKeyState(VK_UP))        //checks for up arrow
  70.         {
  71.             click = false;                  //if up arrow is pressed, changes "click" bool to false, meaning it restarts function
  72.         }
  73.                
  74.             if(click=true) {                //when click is true, checks for left click, and if left click is pressed, it will start clicking
  75.                                             // as fast as you set it (probably lower because the cps is the denom for 1000, to get the actual cps)
  76.                 if (GetAsyncKeyState(VK_LBUTTON & 0x01))
  77.                         mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0);  //clicks where your cursor is at the moment
  78.                         mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0, 0);
  79.                         Sleep(1000 / cps); //randomizes cps with tickspeed of the computer so it doesnt flag as easily
  80.                  } else {
  81.                     LeftClicker; //if nothing else, restarts function to check for up and down arrow again
  82.                     // i need to make an exit button so you dont have to click x because who tf wants to do that
  83.                  }
  84.                    
  85.                  }
  86.                
  87.              
  88.        
  89.             }
  90.    
  91.    
  92.  
  93.  
  94.  
  95.  void RightClicker() {  //right click function, same as left click so im not labelling what it does.
  96.  
  97.  
  98.  
  99.     while (1) {
  100.         if (GetAsyncKeyState(VK_DOWN))
  101.         {
  102.             click = true;
  103.         }
  104.         if (GetAsyncKeyState(VK_UP))
  105.         {
  106.             click = false;
  107.         }
  108.                
  109.             if(click=true) {
  110.              
  111.                 if (GetAsyncKeyState(VK_LBUTTON & 0x01))
  112.                         mouse_event(MOUSEEVENTF_RIGHTDOWN, x, y, 0, 0);
  113.                         mouse_event(MOUSEEVENTF_RIGHTUP, x, y, 0, 0);
  114.                         Sleep(1000 / cps); //randomizes cps with tickspeed of the computer so it doesnt flag as easily
  115.                  } else {
  116.                     RightClicker;
  117.                  }
  118.                    
  119.                  }
  120.                
  121.              
  122.        
  123.             }
  124.        
  125.  
  126.  
  127.  
  128. void Rl() {
  129.  
  130.     cout << "Right or Left Clicker? (Left, left or just l) \n";
  131.     cin >> rl;                                                      //gets users input for whether they want left or right
  132.     if (rl == "Left", "left", "l", "L","lefy","lwft","lef","let","not right","Left click","left click", "LEFTCLICK","legt","lefr") {
  133.                                                                     // if user types any of these strings, it will get the users input for
  134.                                                                     // the cps, then goes to the function corresponding with what choice they made.
  135.         cout << "\n Add cps \n>>";
  136.         cin >> cps;
  137.         cout << "cps is taken and divides 1k to get a slightly randomized click speed, it can also be affected by your pc's speed \n";
  138.         cout << "You'll be clicking around:";
  139.         cout << cps; << " clicks per second";
  140.         LeftClicker;
  141.     }
  142.     else {
  143.         cout << "Right it is! \n"; //if anything other than those certain strings was chosen, gets cps for right click, and goes to right click
  144.         cout << "Add cps \n>>";     //func
  145.         cin >> cps;
  146.         RightClicker;
  147.     }
  148.  
  149. }
  150.  
  151. int main()
  152. {
  153.     cout << "Just gave yourself a keylogger bozo have fun removing it lmaoooo \n";  //just spouts troll before the clicker actually loads.
  154.     cout << "Just gave yourself a keylogger bozo have fun removing it lmaoooo \n";
  155.     cout << "Just gave yourself a keylogger bozo have fun removing it lmaoooo \n";
  156.     cout << "Just gave yourself a keylogger bozo have fun removing it lmaoooo \n";
  157.     cout << "Just gave yourself a keylogger bozo have fun removing it lmaoooo \n";
  158.     cout << "Just gave yourself a keylogger bozo have fun removing it lmaoooo \n";
  159.     cout << "Just gave yourself a keylogger bozo have fun removing it lmaoooo \n";
  160.     cout << "Just gave yourself a keylogger bozo have fun removing it lmaoooo \n";
  161.     cout << "Just gave yourself a keylogger bozo have fun removing it lmaoooo \n";
  162.     cout << "Just gave yourself a keylogger bozo have fun removing it lmaoooo \n";
  163.     cout << "Sike its just an autoclicker did I scare you? \n";
  164.    
  165.     sleep(5); //waits 5 seconds, using Sleep() function with a capital "S", it goes by milliseconds, however if you use "sleep()" it uses seconds.
  166.     BootMenu(); // goes to bootmenu
  167.     Rl();   //goes ot right or left choice
  168.     return 0;
  169. }
Advertisement
Add Comment
Please, Sign In to add comment