WilliamHarlow

BloopClickerv0.2

Oct 24th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 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.  
  42. void BootMenu()
  43. {
  44. cout << "BBBBB 88 OOOO OOOO 88888 " << endl;
  45. cout << "B B 88 O O O O 8 8 " << endl;
  46. cout << "BBBBB 88 O O O O 8888 " << endl;
  47. cout << "B B 88 O O O O 8 " << endl;
  48. cout << "BBBBB 888 OOOO OOOO 8 \n" << endl;
  49. cout << "\n \n \n"
  50. cout << " " << endl;
  51. cout << " " << endl;
  52. cout << "Booting up ";
  53. system("color 04");
  54. cout << "B";
  55. system("color 06");
  56. cout << "l";
  57. system("color 02");
  58. cout << "o";
  59. system("color 01");
  60. cout << "o";
  61. system("color 03");
  62. cout << "p";
  63. system("color 05");
  64. cout << "C";
  65. system("color 07");
  66. cout << "l";
  67. system("color 04");
  68. cout << "i";
  69. system("color 06");
  70. cout << "c";
  71. system("color 02");
  72. cout << "k";
  73. system("color 01");
  74. cout << "e";
  75. system("color 03");
  76. cout << "r \n";
  77. system("color 02");
  78.  
  79.  
  80.  
  81. cout << "NonToggleable Version"
  82.  
  83. }
  84.  
  85. void Rl() {
  86.  
  87. cout << "Right or Left Clicker? \n";
  88. cin >> rl;
  89. if (rl=="Left","left","l") {
  90.  
  91. cout << "\n Add cps \n>>";
  92. cin >> cps;
  93. LeftClicker();
  94.  
  95. } else {
  96. cout << "Right it is! \n";
  97. cout << "Add cps \n>>";
  98. cin >> cps;
  99. RightClicker();
  100. }
  101.  
  102.  
  103. }
  104. void LeftClicker()
  105. {
  106. while (1) {
  107. if (GetAsyncKeyState('J'))
  108. {
  109. click = true;
  110. }
  111. if (GetAsyncKeyState('K'))
  112. {
  113. click = false;
  114. }
  115. if (click == true)
  116. {
  117. while (1)
  118. {
  119. if(GetAsyncKeyState(VK_LBUTTON)) // Left button of the mouse
  120. {
  121. click = true;
  122. }
  123.  
  124. if(GetAsyncKeyState(VK_RBUTTON)) //Right button of the mouse
  125. {
  126. click = false;
  127. }
  128.  
  129. if(click == true)
  130. {
  131. mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0 , 0);
  132. mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0 , 0);
  133. Sleep(1000/cps);
  134. }
  135. }
  136. }
  137. }
  138. void RightClicker()
  139. {
  140.  
  141. while (1) {
  142. if (GetAsyncKeyState('U'))
  143. {
  144. click = true;
  145. }
  146. if (GetAsyncKeyState('I'))
  147. {
  148. click = false;
  149. }
  150. if (click == true)
  151. {
  152. while (1)
  153. {
  154. if(GetAsyncKeyState(VK_RBUTTON)) // Right button of the mouse
  155. {
  156. click = true;
  157. }
  158.  
  159. if(GetAsyncKeyState(VK_LBUTTON)) //Left button of the mouse
  160. {
  161. click = false;
  162. }
  163.  
  164. if(click == true)
  165. {
  166. mouse_event(MOUSEEVENTF_RIGHTDOWN, x, y, 0 , 0);
  167. mouse_event(MOUSEEVENTF_RIGHTUP, x, y, 0 , 0);
  168. Sleep(1000/cps);
  169. }
  170. }
  171. }
  172. int main()
  173. {
  174. BootMenu();
  175. Rl();
  176.  
  177. }
Advertisement
Add Comment
Please, Sign In to add comment