Advertisement
WilliamHarlow

BloopClicker

Oct 22nd, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.83 KB | None | 0 0
  1. #include "pch.h"
  2. #include <iostream>
  3. #include <windows.h>
  4. #include <Windows.h>
  5. #include <WinUser.h>
  6. #include <string>
  7. #include <stdlib.h>
  8.  
  9.  
  10. using namespace std;
  11.  
  12. int n = 1;
  13.  
  14. int x;
  15. int y;
  16.  
  17. int value;
  18. int times;
  19. int done;
  20. int sleepy;
  21. bool active;
  22. int sleepyx;
  23. bool enabled = true;
  24. bool messages;
  25. string choice;
  26. int timer;
  27.  
  28.  
  29. static void console()
  30. {
  31. cout << "Please restart application" << endl;
  32. cout << "Exiting in 5s" << endl;
  33. Sleep(5000);
  34.  
  35. exit(303);
  36. }
  37.  
  38.  
  39.  
  40. static void autoclicker()
  41. {
  42.  
  43. POINT cursorPos;
  44. GetCursorPos(&cursorPos);
  45. int x = cursorPos.x;
  46. int y = cursorPos.y;
  47.  
  48. cout << "Please state how many times would you like to click per second." << endl;
  49. cout << ">> ";
  50. cin >> times;
  51. cout << " " << endl;
  52. cout << "Confirmed, you will be clicking at an average of " << times << " per second" << endl;
  53. cout << " " << endl;
  54. cout << " " << endl;
  55. int sleepyx = 1000 / times;
  56.  
  57. system("cls");
  58.  
  59. cout << "<>-====================================================================================================-<>" << endl;
  60. cout << "" << endl;
  61. cout << "" << endl;
  62. cout << "Start autoclicker = F8" << endl;
  63. cout << "Stop autoclicker = F6" << endl;
  64. cout << "View settings = type 'settings'" << endl;
  65. cout << "Restart application = type 'start'" << endl;
  66. cout << "" << endl;
  67. cout << "" << endl;
  68. cout << "<>-====================================================================================================-<>" << endl;
  69. cout << "" << endl;
  70. cout << "< = > System log < = >" << endl;
  71. cout << "" << endl;
  72. messages = false;
  73.  
  74. while (true) {
  75.  
  76. if (GetAsyncKeyState(VK_UP & 0x26)) { //checks if toggle on key has been pressed
  77.  
  78. cout << "Starting clicker" << endl;
  79. active = true;
  80.  
  81. while (true)
  82. {
  83. if (!active) {
  84. break;
  85. }
  86.  
  87. Sleep(sleepyx);
  88. mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0);
  89. mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0, 0);
  90.  
  91.  
  92. if (GetAsyncKeyState(VK_DOWN & 0x28)) { //checking for toggle on key
  93. active = false;
  94. cout << "Disabling clicker" << endl;
  95. }
  96.  
  97. if (GetAsyncKeyState(VK_SHIFT & 0x10)) { //checking for toggle off key :)
  98. messages = !messages;
  99.  
  100. }
  101.  
  102. }
  103. while (true)
  104. {
  105. if (!active) {
  106. break;
  107. }
  108. timer++;
  109. Sleep(1000);
  110. if (messages)
  111. {
  112. cout << "Current time spent on clicker: " << timer << endl;
  113. cout << "Current clicks per seconds: " << sleepyx << "/s" << endl;
  114.  
  115. }
  116.  
  117.  
  118. }
  119. if (GetAsyncKeyState(VK_ESCAPE & 0x1B)) {
  120.  
  121. cin >> choice;
  122.  
  123. if (choice == "start")
  124. {
  125. system("cls");
  126. console();
  127. }
  128. else if (choice == "settings")
  129. {
  130. system("cls");
  131. console();
  132. }
  133. else {
  134. cout << "Error" << endl;
  135. }
  136.  
  137. cin.get();
  138.  
  139. }
  140. }
  141.  
  142. }
  143. }
  144.  
  145.  
  146.  
  147. static void start()
  148. {
  149.  
  150.  
  151. cout << "BBBBB LL OOOO OOOO PPPPP " << endl;
  152. cout << "B B LL O O O O P P " << endl;
  153. cout << "BBBBB LL O O O O PPPP " << endl;
  154. cout << "B B LL O O O O P " << endl;
  155. cout << "BBBBB LLL OOOO OOOO P \n" << endl;
  156. cout << "\n \n \n"
  157. cout << " " << endl;
  158. cout << " " << endl;
  159. cout << "Booting up BloopClicker" << endl;
  160.  
  161.  
  162. done = 0;
  163.  
  164. autoclicker();
  165.  
  166.  
  167. cout << "Damn this is trash and im never making an autoclicker again but i will remember to save this srce code " << endl;
  168. cout << "most of this is skidded btw because im too lazy to recreate matrixclicker" << endl;
  169. cout << " " << endl;
  170. Sleep(1000);
  171. cout << "Command log:" << endl;
  172. cout << ">> ";
  173. cin >> choice;
  174.  
  175. if (choice == "start")
  176. {
  177. system("cls");
  178. start();
  179.  
  180. }
  181. else if (choice == "settings")
  182. {
  183. system("cls");
  184. start();
  185.  
  186. }
  187. else {
  188. cout << "Error" << endl;
  189.  
  190. }
  191.  
  192. cin.get();
  193. }
  194.  
  195.  
  196.  
  197. int main()
  198. {
  199. system("color 80");
  200. start();
  201.  
  202. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement