Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- using namespace std;
- int n = 1;
- int x = 0;
- int y = 0;
- int times;
- int done;
- int sleep;
- int choice;
- void repeatClicker()
- {
- system("cls");
- cout << "Auto Clicker 1.0v zrobiony przez Erzisa" << endl;
- cout << endl;
- cout << "Ile razy chcialbys kliknac? : ";
- cin >> times;
- cout << "Ile odstepu czasu powinno byc miedzy klikami? (Podaj w ms) : ";
- cin >> sleep;
- cout << endl;
- system("cls");
- for (int i = 5; i > 0; i--)
- {
- cout << "Zaczynam za: " << i << "..." << endl;
- Sleep(1000);
- }
- done = 0;
- while (done <= times)
- {
- Sleep(sleep);
- mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0);
- mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0, 0);
- done++;
- }
- system("cls");
- cout << "Jeszcze raz?" << endl;
- cout << "[1] = tak" << endl;
- cout << "[2] = nie" << endl;
- cin >> choice;
- switch (choice)
- {
- case 1:
- {
- repeatClicker();
- }
- break;
- {
- case 2:
- {
- exit(0);
- }
- break;
- }
- }
- }
- int main(int argc, char * argv[])
- {
- cout << "Auto Clicker 1.0v zrobiony przez Erzisa" << endl;
- cout << endl;
- cout << "Ile razy chcialbys kliknac? : ";
- cin >> times;
- cout << "Ile odstepu czasu powinno byc miedzy klikami? (Podaj w ms) : ";
- cin >> sleep;
- cout << endl;
- system("cls");
- for (int i = 5; i > 0; i--)
- {
- cout << "Zaczynam za: " << i << "..." << endl;
- Sleep(1000);
- }
- done = 0;
- while (done <= times)
- {
- Sleep(sleep);
- mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0);
- mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0, 0);
- done++;
- }
- system("cls");
- cout << "Jeszcze raz?" << endl;
- cout << "[1] = tak" << endl;
- cout << "[2] = nie" << endl;
- cin >> choice;
- switch (choice)
- {
- case 1:
- {
- repeatClicker();
- }
- break;
- {
- case 2:
- {
- exit(0);
- }
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement