WilliamHarlow

Will compile soon, autoclicking

Aug 26th, 2021
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.88 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. cin.ignore(); //press enter to close
  81. } else {
  82. LeftClicker; //if nothing else, restarts function to check for up and down arrow again
  83. // i need to make an exit button so you dont have to click x because who tf wants to do that
  84. }
  85.  
  86. }
  87.  
  88.  
  89.  
  90. }
  91.  
  92.  
  93.  
  94.  
  95.  
  96. void RightClicker() { //right click function, same as left click so im not labelling what it does.
  97.  
  98.  
  99.  
  100. while (1) {
  101. if (GetAsyncKeyState(VK_DOWN))
  102. {
  103. click = true;
  104. }
  105. if (GetAsyncKeyState(VK_UP))
  106. {
  107. click = false;
  108. }
  109.  
  110. if(click=true) {
  111.  
  112. if (GetAsyncKeyState(VK_RBUTTON & 0x01))
  113. mouse_event(MOUSEEVENTF_RIGHTDOWN, x, y, 0, 0);
  114. mouse_event(MOUSEEVENTF_RIGHTUP, x, y, 0, 0);
  115. Sleep(1000 / cps); //randomizes cps with tickspeed of the computer so it doesnt flag as easily
  116. cin.ignore(); //press enter to close console/
  117. } else {
  118. RightClicker
  119. }
  120.  
  121. }
  122.  
  123.  
  124.  
  125. }
  126.  
  127.  
  128.  
  129.  
  130. void Rl() {
  131.  
  132. cout << "Right or Left Clicker? (Left, left or just l) \n";
  133. cin >> rl; //gets users input for whether they want left or right
  134. if (rl == "Left", "left", "l", "L","lefy","lwft","lef","let","not right","Left click","left click", "LEFTCLICK","legt","lefr") {
  135. // if user types any of these strings, it will get the users input for
  136. // the cps, then goes to the function corresponding with what choice they made.
  137. cout << "\n Add cps \n>>";
  138. cin >> cps;
  139. 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";
  140. cout << "You'll be clicking around:";
  141. cout << cps; << " clicks per second";
  142. LeftClicker;
  143. }
  144. else {
  145. cout << "Right it is! \n"; //if anything other than those certain strings was chosen, gets cps for right click, and goes to right click
  146. cout << "Add cps \n>>"; //func
  147. cin >> cps;
  148. RightClicker;
  149. }
  150.  
  151. }
  152.  
  153. int main()
  154. {
  155. cout << "Just gave yourself a keylogger bozo have fun removing it lmaoooo \n"; //just spouts troll before the clicker actually loads.
  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 << "Just gave yourself a keylogger bozo have fun removing it lmaoooo \n";
  164. cout << "Just gave yourself a keylogger bozo have fun removing it lmaoooo \n";
  165. cout << "Sike its just an autoclicker did I scare you? \n"; //doesnt actually have any keylogging code, im sure its not hard to plant a
  166. //keylogger in the console but as soon as you closed the console it would stop working
  167.  
  168. sleep(5); //waits 5 seconds, using Sleep() function with a capital "S", it goes by milliseconds, however if you use "sleep()" it uses seconds.
  169. BootMenu(); // goes to bootmenu
  170. Rl(); //goes ot right or left choice // system("pause") keeps it open until i press any key. //cin.ignore();
  171. // im not sure if i should add this so im turning it into a comment for now. ((return 0;
  172. }
Advertisement
Add Comment
Please, Sign In to add comment