Advertisement
erzis

Untitled

Nov 25th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>
  3.  
  4. using namespace std;
  5.  
  6. int n = 1;
  7. int x = 0;
  8. int y = 0;
  9. int times;
  10. int done;
  11. int sleep;
  12. int choice;
  13.  
  14. void repeatClicker()
  15. {
  16. system("cls");
  17. cout << "Auto Clicker 1.0v zrobiony przez Erzisa" << endl;
  18. cout << endl;
  19. cout << "Ile razy chcialbys kliknac? : ";
  20. cin >> times;
  21. cout << "Ile odstepu czasu powinno byc miedzy klikami? (Podaj w ms) : ";
  22. cin >> sleep;
  23. cout << endl;
  24. system("cls");
  25.  
  26. for (int i = 5; i > 0; i--)
  27. {
  28. cout << "Zaczynam za: " << i << "..." << endl;
  29. Sleep(1000);
  30. }
  31.  
  32. done = 0;
  33.  
  34. while (done <= times)
  35. {
  36. Sleep(sleep);
  37. mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0);
  38. mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0, 0);
  39. done++;
  40. }
  41.  
  42. system("cls");
  43.  
  44. cout << "Jeszcze raz?" << endl;
  45. cout << "[1] = tak" << endl;
  46. cout << "[2] = nie" << endl;
  47. cin >> choice;
  48.  
  49. switch (choice)
  50. {
  51. case 1:
  52. {
  53. repeatClicker();
  54. }
  55. break;
  56. {
  57. case 2:
  58. {
  59. exit(0);
  60. }
  61. break;
  62. }
  63. }
  64. }
  65.  
  66. int main(int argc, char * argv[])
  67. {
  68. cout << "Auto Clicker 1.0v zrobiony przez Erzisa" << endl;
  69. cout << endl;
  70. cout << "Ile razy chcialbys kliknac? : ";
  71. cin >> times;
  72. cout << "Ile odstepu czasu powinno byc miedzy klikami? (Podaj w ms) : ";
  73. cin >> sleep;
  74. cout << endl;
  75. system("cls");
  76.  
  77. for (int i = 5; i > 0; i--)
  78. {
  79. cout << "Zaczynam za: " << i << "..." << endl;
  80. Sleep(1000);
  81. }
  82.  
  83. done = 0;
  84.  
  85. while (done <= times)
  86. {
  87. Sleep(sleep);
  88. mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0);
  89. mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0, 0);
  90. done++;
  91. }
  92.  
  93. system("cls");
  94.  
  95. cout << "Jeszcze raz?" << endl;
  96. cout << "[1] = tak" << endl;
  97. cout << "[2] = nie" << endl;
  98. cin >> choice;
  99.  
  100. switch (choice)
  101. {
  102. case 1:
  103. {
  104. repeatClicker();
  105. }
  106. break;
  107. {
  108. case 2:
  109. {
  110. exit(0);
  111. }
  112. break;
  113. }
  114. }
  115. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement