[Clicker Heroes] [Quick Cash] [Unlimited Mouse Storm]

[Clicker Heroes] [Quick Cash] [Unlimited Mouse Storm]


1. Program brief

Clicker Heroes is a purely boring game to pass the time. Its gameplay is to damage monsters by clicking with the mouse or using hang-up damage to cause damage to monsters. When the monster dies, it will drop a certain amount of money, and then the player can Use money to upgrade or buy characters to get higher click damage or hang-up damage. This program is written based on the mouse click damage in the game.


2. Program ideas

Idea: There is a skill called Mouse Storm in Clicker Heroes. Its function is to simulate high-speed mouse clicks to achieve the purpose of causing a lot of damage to monsters, so we can think of it, why not click the mouse at high speed so that we can Have the same effect as the mouse storm? Because the hand speed of most players is actually far less than the computer program, so I wrote a program to help players click at high speed (the speed is equivalent to a mouse storm).


3. Program code

#include<windows.h>
#define key_down(x) (GetAsyncKeyState(x)&0x8000?1:0)
#include<iostream>
using namespace std;
inline void set(POINT xx){SetCursorPos(xx.x,xx.y);}
inline void click(POINT xx){
    set(xx);
    Sleep(5);
    mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
    Sleep(5);
    mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
}
inline void Get(POINT &xx){GetCursorPos(&xx);}
inline bool If_KeyDown(char ch){return GetAsyncKeyState(ch);}
bool ifok,ifsure,if_end;
int n;
POINT pos;
int main(){
    while (1){
        system("cls");
        cout<<"请问你要点击几次呢?(如果无限点击请按 -1 )"<<endl;
        cin>>n;
        system("cls");
        cout<<"请将你的鼠标移到怪物所在位置并按下 1 键"<<endl;
        cin>>ifok;
        system("cls");
        if (ifok)Get(pos);
        if (n<0){
            cout<<"即将进入后进入无限点击模式,如果你想停止,请按 Alt+S 键,如果你想继续请按 Alt+C 键"<<endl;
            cout<<"如果你想结束请按 Alt+K 键"<<endl;
            system("pause");
            while (1){
                click(pos);
                if (If_KeyDown('S')&&If_KeyDown(18)){
                    system("cls"),cout<<"程序已暂停!"<<endl;
                    while (!(If_KeyDown('C')&&If_KeyDown(18))){
                        if (If_KeyDown('K')&&If_KeyDown(18)){
                            system("cls"),cout<<"程序即将退出"<<endl;
                            system("pause"); 
                            return 0;
                        }
                    }
                    system("cls"),cout<<"程序已开始运行"<<endl;
                }
                if (If_KeyDown('K')&&If_KeyDown(18)){
                    system("cls"),cout<<"程序即将退出"<<endl;
                    system("pause"); 
                    return 0;
                }
            }
            Sleep(3000);
        }else{
            system("cls");
            cout<<"即将进入后进入定数点击模式,如果你想停止,请按 Alt+S 键,如果你想继续请按 Alt+C 键"<<endl;
            cout<<"如果你想结束请按 Alt+K 键"<<endl;
            system("pause");
            for (int i=1;i<=n;i++){
                click(pos);
                if (If_KeyDown('S')&&If_KeyDown(18)){
                    system("cls"),cout<<"程序已暂停!"<<endl;
                    while (!(If_KeyDown('C')&&If_KeyDown(18))){
                        if (If_KeyDown('K')&&If_KeyDown(18)){
                            system("cls"),cout<<"程序即将退出"<<endl;
                            system("pause"); 
                            return 0;
                        }
                    }
                    system("cls"),cout<<"程序已开始运行"<<endl;
                }
                if (If_KeyDown('K')&&If_KeyDown(18)){
                    system("cls"),cout<<"程序即将退出"<<endl;
                    system("pause"); 
                    return 0;
                }
            }
        }
        cout<<"任务完成!按 1 退出,按 0 继续"<<endl;
        cin>>if_end;
        if (if_end)break;
    }
    return 0;
}

If there are any bugs in the program, please add QQ: 1956280693 to discuss with me.


4. Program download

If you have friends who don't know how to use this code, you can click here to download .

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324530872&siteId=291194637