C++连点器升级版3.0

博主在CSDN上分享了C++连点器的最新升级版3.0,该版本结合了之前1.0版本的大界面和2.0版本的小界面特性,旨在提供更完善的用户体验。
摘要由CSDN通过智能技术生成

好久前在csdn小唐c++上发表了连点器1.0和2.0

但还不够满足,前几天看到了一位大神的视频,所以我把1.0和2.0结合了

他结合了1.0的大界面也可以是2.0的小介面

#include <windows.h>
#include <bits/stdc++.h>
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0) 
using namespace std;
void L_Down() {INPUT  Input = { '0 '};Input.type = INPUT_MOUSE;Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;SendInput(1, &Input, sizeof(INPUT));}
void L_Up() {INPUT  Input = {' 0 '};Input.type = INPUT_MOUSE;Input.mi.dwFlags = MOUSEEVENTF_LEFTUP;SendInput(1, &Input, sizeof(INPUT));}
void R_Down() {INPUT  Input = { '0' };Input.type = INPUT_MOUSE;Input.mi.dwFlags = MOUSEEVENTF_RIGHTDOWN;SendInput(1, &Input, sizeof(INPUT));}
void R_Up() {INPUT  Input = { '0' };Input.type = INPUT_MOUSE;Input.mi.dwFlags = MOUSEEVENTF_RIGHTUP;SendInput(1, &Input, sizeof(INPUT));}
/* This is where all the input to the window goes to */
int num=0;
int sleeptime;//sleeptime[timesllllser] = 1;timesllllser++;
int timesllllser=0;
int sdjsdjsdksjdkjskdj=0;
int sdsjdsdsdsdstime =0;
int dingwei=0;
int dingweitime=0;
int fangfeng=0;
int fangfengtime=0;
int ret118=1;
int jinggouccff=0;
int dingweiok=0;
int aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=0; 
HWND h1,h2,h3,h4,h5,h6,h7,h8,h9,h11,h12,h13,h14,h15,h16,h17,h18,h19,h20,h100,h200,h111,h112,h113,h114,h115,h116,h117,h118,h119,h120,h1201,h11101,h11102,h11103,h11104,h11105,h333,hx1,hx2,hx,hb,h,b1,b2,b3;
HINSTANCE hInst;
LRESULT CALLBACK WndProc(HWND hwnd,UINT Message,WPARAM wParam,LPARAM lParam){
	if(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa==0){
    switch(Message){
        case WM_CREATE:{
            h1=CreateWindow("button","左键高速",WS_CHILD|WS_VISIBLE,
                            0,0,100,50,hwnd,(HMENU)1,hInst,NULL);
            h2=CreateWindow("button","右键高速",WS_CHILD|WS_VISIBLE,
                            100,0,100,50,hwnd,(HMENU)2,hInst,NULL);
            h3=CreateWindow("button","左键低速",WS_CHILD|WS_VISIBLE,
                            200,0,100,50,hwnd,(HMENU)3,hInst,NULL);
            h4=CreateWindow("button","右键低速",WS_CHILD|WS_VISIBLE,
                            0,50,100,50,hwnd,(HMENU)4,hInst,NULL);
            h5=CreateWindow("button","左键自定",WS_CHILD|WS_VISIBLE,
                            100,50,100,50,hwnd,(HMENU)5,hInst,NULL);
            h6=CreateWindow("button","右键自定",WS_CHILD|WS_VISIBLE,
                            200,50,100,50,hwnd,(HMENU)6,hInst,NULL);
            h7=CreateWindow("button","开始连点",WS_CHILD|WS_VISIBLE,
                            300,0,100,100,hwnd,(HMENU)7,hInst,NULL);
            h8=CreateWindow("button","结束连点",WS_CHILD|WS_VISIBLE,
                            400,0,100,100,hwnd,(HMENU)8,hInst,NULL);
            h11=CreateWindow("button","+1",WS_CHILD|WS_VISIBLE,
                            0,150,50,50,hwnd,(HMENU)11,hInst,NULL);    
            h12=CreateWindow("button","+2",WS_CHILD|WS_VISIBLE,
                            50,150,50,50,hwnd,(HMENU)12,hInst,NULL);                            
            h13=CreateWindow("button","+3",WS_CHILD|WS_VISIBLE,
                             100,150,50,50,hwnd,(HMENU)13,hInst,NULL);            
            h14=CreateWindow("button","+4",WS_CHILD|WS_VISIBLE,
                            150,150,50,50,hwnd,(HMENU)14,hInst,NULL);
            h15=CreateWindow("button","+5",WS_CHILD|WS_VISIBLE,
                            200,150,50,50,hwnd,(HMENU)15,hInst,NULL);                        
            h16=CreateWindow("button","+6",WS_CHILD|WS_VISIBLE,
                            250,150,50,50,hwnd,(HMENU)16,hInst,NULL);
            h17=CreateWindow("button","+7",WS_CHILD|WS_VISIBLE,
                            300,150,50,50,hwnd,(HMENU)17,hInst,NULL);    
            h18=CreateWindow("button","+8",WS_CHILD|WS_VISIBLE,
                            350,150,50,50,hwnd,(HMENU)18,hInst,NULL);    
            h19=CreateWindow("button","+9",WS_CHILD|WS_VISIBLE,
                            400,150,50,50,hwnd,(HMENU)19,hInst,NULL);    
            h200=CreateWindow("button","NO",WS_CHILD|WS_VISIBLE,
                            450,150,50,50,hwnd,(HMENU)200,hInst,NULL);
            b1=CreateWindow("button",">>>",WS_CHILD|WS_VISIBLE,
                        250,100,100,50,hwnd,(HMENU)11881,hInst,NULL);
            b2=CreateWindow("button","OK",WS_CHILD|WS_VISIBLE,
                        150,100,100,50,hwnd,(HMENU)11882,hInst,NULL);    
            h11103=CreateWindow("button","定位连点开/关",WS_CHILD|WS_VISIBLE,
                        350,100,150,50,hwnd,(HMENU)999,hInst,NULL);        
            h119=CreateWindow("button","你选的连点方式:无",WS_CHILD|WS_VISIBLE,
                        0,100,150,50,hwnd,(HMENU)0,hInst,NULL);        
                                                                                                                                                        
            break;
        }
        case WM_COMMAND:{
            switch(wParam){
                case 999:{
                        if(jinggouccff==0){
                                        h11103=CreateWindow("button","定位连点开/关",WS_CHILD|WS_VISIBLE,
                                                                                                        350,100,150,50,hwnd,(HMENU)999,hInst,NULL);            
                                        }
                                        else if(jinggouccff==1){
                                                h11103=CreateWindow("button","防查封开/关",WS_CHILD|WS_VISIBLE,
                                                                                                350,100,150,50,hwnd,(HMENU)999,hInst,NULL);        
                                        
                                        }
                                        else if(jinggouccff==2){
                                        
                                                h11103=CreateWindow("button","防封设置间隔",WS_CHILD|WS_VISIBLE,
                                                                                                                                            350,100,150,50,hwnd,(HMENU)999,hInst,NULL);    
                                        }
                                            break;
                }
                case 11881:{
                    if(jinggouccff==0){
                        jinggouccff=1;
                            h11103=CreateWindow("button","防查封开/关",WS_CHILD|WS_VISIBLE,
                                            350,100,150,50,hwnd,(HMENU)999,hInst,NULL);                    
                    }
                    else if(jinggouccff==1){
                        jinggouccff=2;    
                        h11103=CreateWindow("button","防封设置间隔",WS_CHILD|WS_VISIBLE,
                                                                        350,100,150,50,hwnd,(HMENU)999,hInst,NULL);        
                    }
                    else if(jinggouccff==2){
                        jinggouccff=0;
                            h11103=CreateWindow("button","定位连点开/关",WS_CHILD|WS_VISIBLE,
                                            350,100,150,50,hwnd,(HMENU)999,hInst,NULL);            
                    }
                        break;
                    }
                    case 11882:{
                        if(jinggouccff==0){
                            if(fangfeng==0){
                       if(dingwei==1){
                           dingwei=0;
                           MessageBox(GetForegroundWindow(),"已关闭","c++",0);
                       }
                       else{
                           dingwei=1;
                           MessageBox(GetForegroundWindow(),"已开启","c++",0);
                       }
                            }
                            else{
                                    MessageBox(GetForegroundWindow(),"请先关闭防封","c++",0);
                            }
                        }
                    
                        else if(jinggouccff==1){
                           if(dingwei==0){
                               if(fangfeng==0){
                                  fangfeng=1;
                                      MessageBox(GetForegroundWindow(),"已开启1","c++",0);
                               }
                          else{
                                    fangfeng=0;
                                        MessageBox(GetForegroundWindow(),"已关闭1","c++",0);
                          }
                           }
                           else{
                                    MessageBox(GetForegroundWindow(),"请先关闭定位,然后设置低速","c++",0);
                           }
                        }
                        else if(jinggouccff==2){
                            int x=MessageBox(GetForegroundWindow(),"间隔大-点击是,间隔中-点击否,间隔小-点击取消","c++",3);
                            cout<<x;
                            if(x==6){
                            fangfengtime==1;
                        }
                        else if(x==7){
                            fangfengtime==2;
                        }
                        else{
                            fangfengtime==3;
                        }
                        }
                            if(jinggouccff==0){
                                                                h11103=CreateWindow("button","定位连点开/关",WS_CHILD|WS_VISIBLE,
                                                                                                                                350,100,150,50,hwnd,(HMENU)999,hInst,NULL);            
                                                                }
                                                                else if(jinggouccff==1){
                                                                        h11103=CreateWindow("button","防查封开/关",WS_CHILD|WS_VISIBLE,
                                                                                                                        350,100,150,50,hwnd,(HMENU)999,hInst,NULL);        
                                                                
                                                                }
                                                                else if(jinggouccff==2){
                                                                
                                                                        h11103=CreateWindow("button","防封设置间隔",WS_CHILD|WS_VISIBLE,
                                                                                                                                                                    350,100,150,50,hwnd,(HMENU)999,hInst,NULL);    
                                                                }
                                                                    break;    
                        break;
                    }
                case 1:{
                    cout<<"1";
                    sdjsdjsdksjdkjskdj =1;    
                    h119=CreateWindow("button","你选的连点方式:左键高速",WS_CHILD|WS_VISIBLE,
                                                0,100,150,50,hwnd,(HMENU)0,hInst,NULL);    
                    break;
                }
                case 2:{
                    cout<<"2";
                    sdjsdjsdksjdkjskdj =2;
                     h119=CreateWindow("button","你选的连点方式:右键高速",WS_CHILD|WS_VISIBLE,
                                    0,100,150,50,hwnd,(HMENU)0,hInst,NULL);        
                    break;
                }
                case 3:{
                     cout<<"3";
                     sdjsdjsdksjdkjskdj =3;
                      h119=CreateWindow("button","你选的连点方式:左键低速",WS_CHILD|WS_VISIBLE,
                                     0,100,150,50,hwnd,(HMENU)0,hInst,NULL);        
                     break;
                }
                case 4:{
                    cout<<"4";
                    sdjsdjsdksjdkjskdj =4;
                      h119=CreateWindow("button","你选的连点方式:右键低速",WS_CHILD|WS_VISIBLE,
                                                         0,100,150,50,hwnd,(HMENU)0,hInst,NULL);        
                    break;
                }
                case 5:{
                    cout<<"5";
                      h119=CreateWindow("button","你选的连点方式:左键自定",WS_CHILD|WS_VISIBLE,
                                                        0,100,150,50,hwnd,(HMENU)0,hInst,NULL);        
                    MessageBox(GetForegroundWindow(),"请输入延迟时间","c++",0);
                    sdjsdjsdksjdkjskdj =5;
                    break;
                }
                case 6:{
                    cout<<"6";
                          h119=CreateWindow("button","你选的连点方式:右键自定",WS_CHILD|WS_VISIBLE,
                                                                            0,100,150,50,hwnd,(HMENU)0,hInst,NULL);        
                     MessageBox(GetForegroundWindow(),"请输入延迟时间","c++",0);
                     sdjsdjsdksjdkjskdj =6;
                    break;
                }
                case 7:{
                    if(dingwei==0&&fangfeng==0){
                    cout<<"7";
                    }
       
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值