Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <Windows.h>
- #include <string>
- using namespace std;
- /* colors for rainbow
- 0 = Black
- 1 = Blue
- 2 = Green
- 3 = Aqua
- 4 = Red
- 5 = Purple
- 6 = Yellow
- 7 = White
- 8 = Gray
- 9 = Light Blue
- A = Light Green
- B = Light Aqua
- C = Light Red
- D = Light Purple
- E = Light Yellow
- F = Bright White
- 7 = F = bright white white
- system("color 02");For example, this is black green text
- */
- int x = 0, y = 0, cps;
- bool click = false;
- string rl;
- void BootMenu()
- {
- cout << " oOOOOo oOo .o000o. .o000o. .oOOOo. \n";
- cout << "OO OO OOO OO OO OO OO OO OO \n";
- cout << "OO .o OOO OO OO OO OO OO OO \n";
- cout << "OO.oo OOO OO OO OO OO OO OO \n";
- cout << "OO.oo OOO OO OO OO OO OOoOoO \n";
- cout << "OO o. OOO OO OO OO OO OO \n";
- cout << "OO OO OOO OO OO OO OO OO \n";
- cout << "OO Oo OOO OO OO OO OO OO \n";
- cout << " oOOOOo OOO OooooO OoooO OO \n"; //picture art for start.
- cout << "\n \n \n";
- cout << " " << endl;
- cout << " " << endl;
- system("color 04");
- cout << "Booting up";
- Sleep(300);
- system("color 06");
- cout << ".";
- Sleep(250);
- system("color 02");
- cout << ".";
- Sleep(200);
- system("color 03");
- cout << ".\n";
- cout << "Bloopclicker v2 \n made by Bloopdog himself. \n";
- system("color 01");
- cout << "Toggle on key is up arrow, toggle off key is down arrow. \n ";
- system("color 04"); // makes the background black and text red
- }
- void LeftClicker() { // leftclicking function
- while (1) { //while 1, so basically forever
- if (GetAsyncKeyState(VK_DOWN<0)) //checks for down arrow being pressed
- {
- click = true; //if down arrow pressed, turns click bool to true
- }
- if (GetAsyncKeyState(VK_UP>=0)) //checks for up arrow
- {
- click = false; //if up arrow is pressed, changes "click" bool to false, meaning it restarts function
- }
- if(click) { //when click is true, checks for left click, and if left click is pressed, it will start clicking
- // as fast as you set it (probably lower because the cps is the denom for 1000, to get the actual cps)
- if (GetAsyncKeyState(VK_LBUTTON < 0))
- INPUT input[2] = {};
- input[0].type = INPUT_MOUSE;
- input[0].mi.dx = x;
- input[0].mi.dy = y;
- input[0].mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
- input[1] = input[0];
- input[1].mi.dwFlags = MOUSEEVENTF_LEFTUP;
- SendInput(2, input, sizeof(INPUT));
- Sleep(1000 / cps);
- }
- }
- }
- void RightClicker() { //right click function, same as left click so im not labelling what it does.
- while (1) {
- if (GetAsyncKeyState(VK_DOWN<0))
- {
- click = true;
- }
- if (GetAsyncKeyState(VK_UP>=0))
- {
- click = false;
- }
- if(click) { //when click is true, checks for left click, and if left click is pressed, it will start clicking
- // as fast as you set it (probably lower because the cps is the denom for 1000, to get the actual cps)
- if (GetAsyncKeyState(VK_RBUTTON < 0))
- INPUT input[2] = {};
- input[0].type = INPUT_MOUSE;
- input[0].mi.dx = x;
- input[0].mi.dy = y;
- input[0].mi.dwFlags = MOUSEEVENTF_RIGHTDOWN;
- input[1] = input[0];
- input[1].mi.dwFlags = MOUSEEVENTF_RIGHTUP;
- SendInput(2, input, sizeof(INPUT));
- Sleep(1000 / cps);
- }
- }
- }
- }
- void Rl() {
- cout << "Right or Left Clicker? (Left, left or just l) \n";
- cin >> rl; //gets users input for whether they want left or right
- if (rl == "Left", "left", "l", "L","lefy","lwft","lef","let","not right","Left click","left click", "LEFTCLICK","legt","lefr") {
- // if user types any of these strings, it will get the users input for
- // the cps, then goes to the function corresponding with what choice they made.
- cout << "\n Add cps \n>>";
- cin >> cps;
- cout << "cps is taken and divides 1k to get a slightly randomized click speed, it can also be affected by your pc's speed. \n";
- cout << "You'll be clicking around:";
- cout << cps; << " clicks per second";
- LeftClicker;
- }
- else {
- cout << "Right it is! \n"; //if anything other than those certain strings was chosen, gets cps for right click, and goes to right click
- cout << "Add cps \n>>"; //func
- cin >> cps;
- RightClicker;
- }
- }
- int main()
- {
- BootMenu(); // goes to bootmenu
- Rl(); //goes ot right or left choice // system("pause") keeps it open until i press any key. //cin.ignore();
- }
Advertisement
Add Comment
Please, Sign In to add comment