Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- #include <windows.h>
- #include <Windows.h>
- #include <WinUser.h>
- #include <string>
- #include <stdlib.h>
- using namespace std;
- int n = 1;
- int x;
- int y;
- int value;
- int times;
- int done;
- int sleepy;
- bool active;
- int sleepyx;
- bool enabled = true;
- bool messages;
- string choice;
- int timer;
- static void console()
- {
- cout << "Please restart application" << endl;
- cout << "Exiting in 5s" << endl;
- Sleep(5000);
- exit(303);
- }
- static void autoclicker()
- {
- POINT cursorPos;
- GetCursorPos(&cursorPos);
- int x = cursorPos.x;
- int y = cursorPos.y;
- cout << "Please state how many times would you like to click per second." << endl;
- cout << ">> ";
- cin >> times;
- cout << " " << endl;
- cout << "Confirmed, you will be clicking at an average of " << times << " per second" << endl;
- cout << " " << endl;
- cout << " " << endl;
- int sleepyx = 1000 / times;
- system("cls");
- cout << "<>-====================================================================================================-<>" << endl;
- cout << "" << endl;
- cout << "" << endl;
- cout << "Start autoclicker = F8" << endl;
- cout << "Stop autoclicker = F6" << endl;
- cout << "View settings = type 'settings'" << endl;
- cout << "Restart application = type 'start'" << endl;
- cout << "" << endl;
- cout << "" << endl;
- cout << "<>-====================================================================================================-<>" << endl;
- cout << "" << endl;
- cout << "< = > System log < = >" << endl;
- cout << "" << endl;
- messages = false;
- while (true) {
- if (GetAsyncKeyState(VK_UP & 0x26)) { //checks if toggle on key has been pressed
- cout << "Starting clicker" << endl;
- active = true;
- while (true)
- {
- if (!active) {
- break;
- }
- Sleep(sleepyx);
- mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0);
- mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0, 0);
- if (GetAsyncKeyState(VK_DOWN & 0x28)) { //checking for toggle on key
- active = false;
- cout << "Disabling clicker" << endl;
- }
- if (GetAsyncKeyState(VK_SHIFT & 0x10)) { //checking for toggle off key :)
- messages = !messages;
- }
- }
- while (true)
- {
- if (!active) {
- break;
- }
- timer++;
- Sleep(1000);
- if (messages)
- {
- cout << "Current time spent on clicker: " << timer << endl;
- cout << "Current clicks per seconds: " << sleepyx << "/s" << endl;
- }
- }
- if (GetAsyncKeyState(VK_ESCAPE & 0x1B)) {
- cin >> choice;
- if (choice == "start")
- {
- system("cls");
- console();
- }
- else if (choice == "settings")
- {
- system("cls");
- console();
- }
- else {
- cout << "Error" << endl;
- }
- cin.get();
- }
- }
- }
- }
- static void start()
- {
- cout << "BBBBB LL OOOO OOOO PPPPP " << endl;
- cout << "B B LL O O O O P P " << endl;
- cout << "BBBBB LL O O O O PPPP " << endl;
- cout << "B B LL O O O O P " << endl;
- cout << "BBBBB LLL OOOO OOOO P \n" << endl;
- cout << "\n \n \n"
- cout << " " << endl;
- cout << " " << endl;
- cout << "Booting up BloopClicker" << endl;
- done = 0;
- autoclicker();
- cout << "Damn this is trash and im never making an autoclicker again but i will remember to save this srce code " << endl;
- cout << "most of this is skidded btw because im too lazy to recreate matrixclicker" << endl;
- cout << " " << endl;
- Sleep(1000);
- cout << "Command log:" << endl;
- cout << ">> ";
- cin >> choice;
- if (choice == "start")
- {
- system("cls");
- start();
- }
- else if (choice == "settings")
- {
- system("cls");
- start();
- }
- else {
- cout << "Error" << endl;
- }
- cin.get();
- }
- int main()
- {
- system("color 80");
- start();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement