WilliamHarlow

v0.4

Oct 30th, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. #include <iostream>
  2. #include <Windows.h>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int x = 0, y = 0, cps;
  7. bool click = false;
  8. string rl;
  9. string LeftToggleOn;
  10. string LeftToggleOff;
  11. string RightToggleOn;
  12. string RightToggleOff;
  13. string GetKeyStrokes;
  14. string KeyPressed;
  15.  
  16. //todo - add randomzier
  17.  
  18.  
  19. void BootMenu()
  20. {
  21. cout << " oOOOOo oOOo .o000o. .o000o. .oOOOo. \n";
  22. cout << "OO OO OOOO OO OO OO OO OO OO \n";
  23. cout << "OO .o OOOO OO OO OO OO OO OO \n";
  24. cout << "OO.oo OOOO OO OO OO OO OO OO \n";
  25. cout << "OO.oo OOOO OO OO OO OO OOoOoO \n";
  26. cout << "OO o. OOOO OO OO OO OO OO \n";
  27. cout << "OO OO OOOO OO OO OO OO OO \n";
  28. cout << "OO Oo OOOO OO OO OO OO OO \n";
  29. cout << " oOOOOo OOOO OooooO OoooO OO \n";
  30.  
  31. cout << "\n \n \n";
  32. cout << " " << endl;
  33. cout << " " << endl;
  34. cout << "Booting up Bloopclicker ";
  35.  
  36. system("color 02");
  37.  
  38.  
  39.  
  40.  
  41. }
  42. //menu to boot
  43.  
  44.  
  45.  
  46. //left clicker
  47. void LeftClicker() {
  48. cout << "Choose the toggle on key \n>>";
  49. cin >> LeftToggleOn; //gets user input for toggle on key
  50. cout << "Choose the toggle off key \n>>";
  51. cin >> LeftToggleOff; // gets user input for toggle off key
  52. cout << "'"
  53. cout << LeftToggleOn;
  54. cout << "' toggles the clicker on, '";
  55. cout << LeftToggleOff;
  56. cout << "' toggles it off.";
  57. cin >> cps; //gets desired cps
  58.  
  59. while (1) {
  60. if (GetAsyncKeyState('J'))
  61. {
  62. click = true;
  63. }
  64. if (GetAsyncKeyState('K'))
  65. {
  66. click = false;
  67. }
  68. if (click == true)
  69. {
  70.  
  71. mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0); //x and y makes it click where your mouse is not in a certain spot
  72. mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0, 0);
  73. Sleep(1000 / cps); //divides the tps by cps to get the int cps
  74. }
  75. }
  76. }
  77.  
  78. void RightClicker() {
  79. cout << "Choose the toggle on key \n>>";
  80. cin >> RightToggleOn; //same thing for LeftToggleOn
  81. cout << "Choose the toggle off key \n>>";
  82. cin >> RightToggleOff;
  83. cout << "'"
  84. cout << RightToggleOn;
  85. cout << "' toggles the clicker on, '";
  86. cout << RightToggleOff;
  87. cout << "' toggles it off.";
  88. cin >> cps;
  89. while (1) {
  90. if (GetAsyncKeyState(RightToggleOn))
  91. {
  92. click = true;
  93. }
  94. if (GetAsyncKeyState(RightToggleOff))
  95. {
  96. click = false;
  97. }
  98. if (click == true)
  99. {
  100.  
  101. mouse_event(MOUSEEVENTF_RIGHTDOWN, x, y, 0, 0);
  102. mouse_event(MOUSEEVENTF_RIGHTUP, x, y, 0, 0);
  103. Sleep(1000 / cps);
  104. }
  105. }
  106. }
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119. void Rl() {
  120.  
  121. cout << "Right or Left Clicker? \n";
  122. cin >> rl;
  123. if (rl == "Left", "left", "l") {
  124.  
  125. cout << "\n Add cps \n>>";
  126. LeftClicker();
  127.  
  128. }
  129. else {
  130. cout << "Right it is! \n";
  131. cout << "Add cps \n>>";
  132. RightClicker();
  133. }
  134. }
  135.  
  136. void GetKeyStrokes() {
  137.  
  138. if (GetAsyncKeyState==true) {
  139. cout << KeyPressed;
  140.  
  141. }
  142.  
  143. }
  144.  
  145. int main()
  146. {
  147. BootMenu();
  148. Rl();
  149.  
  150. }
Advertisement
Add Comment
Please, Sign In to add comment