Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <windows.h>
- #include <iostream>
- #include <ctime>
- #include <cstdlib>
- int lfor, i, zododejmowania, zdodawania;
- using namespace std;
- int main()
- {
- srand(time(NULL));
- if (zododejmowania<=4)
- {
- zododejmowania - 2;
- zdodawania = zododejmowania;
- zdodawania + 4;
- }
- lfor = rand() % zododejmowania + zdodawania;
- cout << "Podaj ile chcesz robić cps.(min 4)";
- cin >> zododejmowania;
- while (1)
- {
- if (GetKeyState(VK_LBUTTON))
- {
- for (i = 1; i <= lfor; i++)
- {
- mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
- Sleep(2);
- mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
- Sleep(2);
- }
- }
- }
- Sleep(5);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement