Advertisement
Guest User

Untitled

a guest
May 24th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <windows.h>
  3. #include <iostream>
  4. #include <ctime>
  5. #include <cstdlib>
  6.  
  7. int lfor, i, zododejmowania, zdodawania;
  8. using namespace std;
  9.  
  10. int main()
  11. {
  12. srand(time(NULL));
  13. if (zododejmowania<=4)
  14. {
  15. zododejmowania - 2;
  16. zdodawania = zododejmowania;
  17. zdodawania + 4;
  18. }
  19. lfor = rand() % zododejmowania + zdodawania;
  20.  
  21. cout << "Podaj ile chcesz robić cps.(min 4)";
  22. cin >> zododejmowania;
  23. while (1)
  24. {
  25. if (GetKeyState(VK_LBUTTON))
  26. {
  27. for (i = 1; i <= lfor; i++)
  28.  
  29. {
  30. mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
  31. Sleep(2);
  32. mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
  33. Sleep(2);
  34. }
  35. }
  36. }
  37. Sleep(5);
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement