Advertisement
WilliamHarlow

Bloopclicker, compiles but doenst click yet?

Aug 25th, 2021
1,220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.79 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 words
  24.  
  25. so
  26.  
  27. 84
  28. 86
  29. 82
  30. 81
  31. 83
  32. 85
  33. 87
  34.  
  35.  
  36.  
  37. */
  38. int x = 0, y = 0, cps;
  39. bool click = false;
  40.     string rl;
  41.  char Onkey;
  42.  char Offkey;
  43.  
  44. //add randomzier
  45.  
  46.  
  47. void BootMenu()
  48. {
  49.     cout << " oOOOOo   oOOo   .o000o.  .o000o.  .oOOOo. \n";
  50.     cout << "OO    OO  OOOO  OO    OO OO    OO  OO   OO \n";
  51.     cout << "OO   .o   OOOO  OO    OO OO    OO  OO   OO \n";
  52.     cout << "OO.oo     OOOO  OO    OO OO    OO  OO   OO \n";
  53.     cout << "OO.oo     OOOO  OO    OO OO    OO  OOoOoO  \n";
  54.     cout << "OO   o.   OOOO  OO    OO OO    OO  OO      \n";
  55.     cout << "OO    OO  OOOO  OO    OO OO    OO  OO      \n";
  56.     cout << "OO    Oo  OOOO  OO    OO OO    OO  OO      \n";
  57.     cout << " oOOOOo   OOOO   OooooO    OoooO   OO      \n";
  58.  
  59.     cout << "\n \n \n";
  60.     cout << "  " << endl;
  61.     cout << "  " << endl;
  62.     cout << "Booting up Bloopclicker ";
  63.  
  64.     system("color 02");
  65.  
  66.  
  67.  
  68. }
  69.  
  70. void LeftClicker() {
  71.  
  72.     while (1) {
  73.         if (GetAsyncKeyState(VK_DOWN))
  74.         {
  75.             click = true;
  76.         }
  77.         if (GetAsyncKeyState(VK_UP))
  78.         {
  79.             click = false;
  80.         }
  81.                
  82.             if(click=true) {
  83.              
  84.                 if (GetAsyncKeyState(VK_LBUTTON & 0x01))
  85.                         mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0);
  86.                         mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0, 0);
  87.                         Sleep(1000 / cps); //randomizes cps with tickspeed of the computer so it doesnt flag as easily
  88.                  } else {
  89.                     LeftClicker;
  90.                  }
  91.                    
  92.                  }
  93.                
  94.              
  95.        
  96.             }
  97.    
  98.    
  99.  
  100.  
  101.  
  102.  void RightClicker() {
  103.  
  104.  
  105.  
  106.     while (1) {
  107.         if (GetAsyncKeyState(VK_DOWN))
  108.         {
  109.             click = true;
  110.         }
  111.         if (GetAsyncKeyState(VK_UP))
  112.         {
  113.             click = false;
  114.         }
  115.                
  116.             if(click=true) {
  117.              
  118.                 if (GetAsyncKeyState(VK_LBUTTON & 0x01))
  119.                         mouse_event(MOUSEEVENTF_RIGHTDOWN, x, y, 0, 0);
  120.                         mouse_event(MOUSEEVENTF_RIGHTUP, x, y, 0, 0);
  121.                         Sleep(1000 / cps); //randomizes cps with tickspeed of the computer so it doesnt flag as easily
  122.                  } else {
  123.                     RightClicker;
  124.                  }
  125.                    
  126.                  }
  127.                
  128.              
  129.        
  130.             }
  131.        
  132.  
  133.  
  134.  
  135. void Rl() {
  136.  
  137.     cout << "Right or Left Clicker? \n";
  138.     cin >> rl;
  139.     if (rl == "Left", "left", "l") {
  140.  
  141.         cout << "\n Add cps \n>>";
  142.         cin >> cps;
  143.  
  144.     }
  145.     else {
  146.         cout << "Right it is! \n";
  147.         cout << "Add cps \n>>";
  148.         cin >> cps;
  149.     }
  150.         cout << "Toggle on key is up arrow \n";
  151.         cout << "Toggle off key is down arrow \n";
  152.         if (rl == "Left", "left", "l") {
  153.  
  154.      LeftClicker;
  155.  
  156.     }
  157.     else {
  158.         RightClicker;
  159.     }
  160.    
  161. }
  162.  
  163. int main()
  164. {
  165.     BootMenu();
  166.     Rl();
  167.  
  168. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement