WilliamHarlow

d

Oct 30th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>
  3. #include <string>
  4. #include <cstdlib>
  5. using namespace std;
  6. bool click;
  7. int x;
  8. int y;
  9. HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE);
  10. COORD CursorPosition;
  11.  
  12. void Auth() {
  13. cout << "Hello, this is an anti-afk randomizer made by Bloopdog! \n";
  14. cout << "J toggles on and K toggles off";
  15. }
  16. POINT point;
  17.  
  18.  
  19. void Randomizer() {
  20.  
  21. if (GetCursorPos(&point)) {
  22. cout << point.x << "," << point.y << "\n";
  23. }
  24. Sleep(2);
  25.  
  26.  
  27. CursorPosition.X = x;
  28. CursorPosition.Y = y;
  29. SetConsoleCursorPosition(console,CursorPosition);
  30.  
  31. Sleep(2);
  32.  
  33.  
  34. CursorPosition.X = x;
  35. CursorPosition.Y = y;
  36. SetConsoleCursorPosition(console,CursorPosition );
  37.  
  38.  
  39.  
  40. }
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55. int main() {
  56.  
  57.  
  58. Auth();
  59. Randomizer();
  60.  
  61.  
  62. return 0;
  63.  
  64.  
  65.  
  66.  
  67. }
Advertisement
Add Comment
Please, Sign In to add comment