Exemple #1
0
        public Boolean denglu(int fenzhong)
        {
            WriteLog.WriteLogFile(this._mnqName, "进入到登录环节  " + this._jubing + ",thread:" + Thread.CurrentThread.ManagedThreadId);
            Boolean       abc = true;
            long          kstime = mf.GetTime();
            DuoDianZhaoSe d = new DuoDianZhaoSe(0xde3421, "-5|1|0xde3126,-6|4|0xbd3429,-13|4|0xeda207,22|26|0x636167,33|26|0x55545c,46|26|0x757376,25|52|0xfb8e37,71|54|0xffdb21", 90, 45, 20, 145, 100);
            int           tx = -1, ty = -1;

            mf.myqudianqusezuobiaoByLei(this._jubing, d, out tx, out ty);
            if (tx != -1 && ty != -1)
            {
                WriteLog.WriteLogFile(this._mnqName, "发现网络连接不上");
                return(false);
            }
            DuoDianZhaoSe dz  = new DuoDianZhaoSe(0xea9300, "0|-19|0x8dc11f,0|16|0x1daee0,-14|16|0x1daee0,-18|0|0xdea03a,-21|-15|0x98c539,-1|-37|0x1eb9ee", 90, 0, 0, 215, 121);
            DuoDianZhaoSe dz2 = new DuoDianZhaoSe(0x353636, "4|0|0xe79941,-3|0|0xd68334,10|19|0xf8b757,8|30|0xf9be66,28|49|0x9a9a9a,33|49|0x9a9a9a", 90, 40, 30, 95, 100);

            DuoDianZhaoSe[] dd = new DuoDianZhaoSe[] { dz, dz2 };
            bool            t2 = mf.myqudianqusezuobiaoXunHuan(dd, 60 * fenzhong);

            abc = t2;
            if (!abc)
            {
                WriteLog.WriteLogFile(this._mnqName, "找寻登录界面失败");
            }
            return(abc);
        }
Exemple #2
0
        static Jingjie_DuoDian()
        {
            DuoDianZhaoSe sz  = new DuoDianZhaoSe(0xbed4e7, "-12|-2|0xc6daea,-18|5|0xadc4d9,-2|-4|0xa0b8ce,4|2|0x9cb5cf,11|0|0xc4d8d6,17|0|0xd6d8d6", 90, 617, 1, 678, 23);
            FuHeDuoDian   sz1 = new FuHeDuoDian("跳过", sz, -1, -1);

            _list_yqduodian.Add(sz);
            _list_yqfhduodian.Add(sz1);

            sz  = new DuoDianZhaoSe(0xb5d2e8, "-13|3|0xc3d6ea,-3|-3|0xbed7e9,0|6|0xb1d6e6,12|1|0xd1dee2,-18|5|0xc3d9e9,17|0|0xcad0d6", 90, 617, 1, 678, 23);
            sz1 = new FuHeDuoDian("跳过2", sz, -1, -1);
            _list_yqduodian.Add(sz);
            _list_yqfhduodian.Add(sz1);
        }
Exemple #3
0
        static YiQuan_DuoDian()
        {
            _list_zuobiao.Add(new ZuoBiao(18, 106));
            _list_zuobiao.Add(new ZuoBiao(204, 110));
            _list_yqduodian   = new List <DuoDianZhaoSe>();
            _list_yqfhduodian = new List <FuHeDuoDian>();

            //赋值开始
            List <ZuoBiao> ls0 = new List <ZuoBiao>();

            ls0.Add(new ZuoBiao(174, 155));
            ls0.Add(new ZuoBiao(438, 277));
            ls0.Add(new ZuoBiao(345, 80));
            ls0.Add(new ZuoBiao(268, 263));
            ls0.Add(new ZuoBiao(482, 125));
            ls0.Add(new ZuoBiao(491, 267));
            ls0.Add(new ZuoBiao(280, 132));
            ls0.Add(new ZuoBiao(361, 132));
            ls0.Add(new ZuoBiao(412, 90));
            ls0.Add(new ZuoBiao(340, 155));
            ls0.Add(new ZuoBiao(395, 276));
            ls0.Add(new ZuoBiao(313, 97));
            ls0.Add(new ZuoBiao(510, 9));
            ls0.Add(new ZuoBiao(391, 188));
            ls0.Add(new ZuoBiao(31, 58));
            ls0.Add(new ZuoBiao(491, 267));
            ls0.Add(new ZuoBiao(280, 132));
            ls0.Add(new ZuoBiao(361, 132));
            ls0.Add(new ZuoBiao(412, 90));
            ls0.Add(new ZuoBiao(340, 155));
            ls0.Add(new ZuoBiao(171, 135));
            ls0.Add(new ZuoBiao(73, 12));
            ls0.Add(new ZuoBiao(242, 190));
            ls0.Add(new ZuoBiao(318, 232));
            ls0.Add(new ZuoBiao(461, 54));
            ls0.Add(new ZuoBiao(305, 277));
            ls0.Add(new ZuoBiao(43, 178));
            ls0.Add(new ZuoBiao(395, 104, 0x6c675a));
            DuoDianZhaoSe dz0 = new DuoDianZhaoSe(0xab988d, "0|32|0xffd258,-17|32|0xab1c0b,11|40|0xb02914,25|8|0xebac8e", 90, 0, 0, 532, 299);
            FuHeDuoDian   fh0 = new FuHeDuoDian("光头界面1", dz0, -1, -1, ls0);

            _list_yqduodian.Add(dz0);
            _list_yqfhduodian.Add(fh0);

            DuoDianZhaoSe dz1 = new DuoDianZhaoSe(0xefb294, "-11|22|0xefb294,-21|36|0xcc331e,3|50|0xffcb52,9|41|0x2e3332", 90, 0, 0, 532, 299);
            FuHeDuoDian   fh1 = new FuHeDuoDian("光头界面2", dz1, -1, -1, ls0);

            _list_yqduodian.Add(dz1);
            _list_yqfhduodian.Add(fh1);

            DuoDianZhaoSe dz11 = new DuoDianZhaoSe(0xefb294, "-24|17|0xbd3410,-6|31|0x9b7838,15|36|0xffcb4e,1|45|0x93651c", 90, 0, 0, 532, 299);
            FuHeDuoDian   fh11 = new FuHeDuoDian("光头界面3", dz11, -1, -1, ls0);

            _list_yqduodian.Add(dz11);
            _list_yqfhduodian.Add(fh11);

            DuoDianZhaoSe dz12 = new DuoDianZhaoSe(0xefb294, "-24|34|0xd5351c,9|47|0xffc94d,-3|49|0xaf291a,19|19|0xc78261", 90, 0, 0, 532, 299);
            FuHeDuoDian   fh12 = new FuHeDuoDian("光头界面4", dz12, -1, -1, ls0);

            _list_yqduodian.Add(dz12);
            _list_yqfhduodian.Add(fh12);

            DuoDianZhaoSe dz2 = new DuoDianZhaoSe(0xf2a726, "-190|-1|0xec9812,-292|-266|0xbdb9aa,-106|-265|0xb9bcc6,-297|-261|0xb7b9ac", 90, 0, 0, 532, 299);
            FuHeDuoDian   fh2 = new FuHeDuoDian("类似光头战斗未自动", dz2, -1, -1, ls0);

            _list_yqduodian.Add(dz2);
            _list_yqfhduodian.Add(fh2);

            /*DuoDianZhaoSe dz21 = new DuoDianZhaoSe(0x524f42, "0|7|0xfedf6a,-211|-4|0xbcbcbb,-211|0|0xfdfbf5,-207|0|0xe9eae5", 90, 0, 0, 532, 299);
             * FuHeDuoDian fh21 = new FuHeDuoDian("类似光头战斗未自动2", dz21, -1, -1, ls0);
             * _list_yqduodian.Add(dz21);
             * _list_yqfhduodian.Add(fh21);*/


            DuoDianZhaoSe dz3 = new DuoDianZhaoSe(0xf3270d, "-5|0|0xf32a00,-5|-5|0xf32a00,-12|-2|0x410a03,-7|5|0x5b0d08", 90, 0, 0, 532, 240);
            FuHeDuoDian   fh3 = new FuHeDuoDian("类似光头红色拳头", dz3, -1, -1, ls0);

            _list_yqduodian.Add(dz3);
            _list_yqfhduodian.Add(fh3);

            DuoDianZhaoSe dz4 = new DuoDianZhaoSe(0xda3519, "-7|-2|0xee280a,-3|8|0x530f07,-1|-9|0xcc462f,1|3|0xf32614", 90, 0, 0, 532, 240);
            FuHeDuoDian   fh4 = new FuHeDuoDian("类似光头红色拳头2", dz4, -1, -1, ls0);

            _list_yqduodian.Add(dz4);
            _list_yqfhduodian.Add(fh4);

            dz4 = new DuoDianZhaoSe(0xf52802, "0|-6|0xd0330e,-5|-6|0xf72810,-5|6|0x30312e,10|2|0xeb290a", 90, 0, 0, 532, 240);
            fh4 = new FuHeDuoDian("类似光头红色拳头3", dz4, -1, -1, ls0);
            _list_yqduodian.Add(dz4);
            _list_yqfhduodian.Add(fh4);

            dz4 = new DuoDianZhaoSe(0xff2c02, "0|-8|0xd64931,-10|0|0xd64931,-1|6|0xc62400,11|1|0xdd5738", 90, 0, 0, 532, 280);
            fh4 = new FuHeDuoDian("类似光头红色拳头4", dz4, -1, -1, ls0);
            _list_yqduodian.Add(dz4);
            _list_yqfhduodian.Add(fh4);
            //其他多点
            DuoDianZhaoSe rcdz1 = new DuoDianZhaoSe(0x69b509, "-9|0|0x529f09,10|0|0x6fc507,-69|-1|0xabe27e,-80|-1|0x97ca6f", 90, 0, 90, 110, 160);
            FuHeDuoDian   rcfh1 = new FuHeDuoDian("支线已完成", rcdz1, -1, -1);

            _list_yqduodian.Add(rcdz1);
            _list_yqfhduodian.Add(rcfh1);

            DuoDianZhaoSe rcdz2 = new DuoDianZhaoSe(0xffdb21, "-8|6|0xfbda3c,5|9|0xb9972a,17|9|0xffda24,9|10|0x925b20", 90, 333, 96, 509, 268);
            FuHeDuoDian   rcfh2 = new FuHeDuoDian("支线完成领取", rcdz2, -1, -1);

            _list_yqduodian.Add(rcdz2);
            _list_yqfhduodian.Add(rcfh2);

            DuoDianZhaoSe rcdz3 = new DuoDianZhaoSe(0xcbb66c, "4|2|0xead580,40|1|0xe3ce84,51|-1|0xf3de87,56|3|0x968449", 90, 0, 90, 110, 160);
            FuHeDuoDian   rcfh3 = new FuHeDuoDian("钉头锤领取", rcdz3, -1, -1);

            _list_yqduodian.Add(rcdz3);
            _list_yqfhduodian.Add(rcfh3);

            DuoDianZhaoSe rcdz4 = new DuoDianZhaoSe(0x89591d, "10|3|0x5d330a,13|21|0x7d570a,-4|21|0xfffff7,-9|28|0xffff9e", 90, 0, 0, 532, 299);
            FuHeDuoDian   rcfh4 = new FuHeDuoDian("关卡宝箱领取", rcdz4, -1, -1);

            _list_yqduodian.Add(rcdz4);
            _list_yqfhduodian.Add(rcfh4);

            DuoDianZhaoSe rcdz5 = new DuoDianZhaoSe(0x8551a6, "-13|10|0xd0a094,-18|-1|0xe28745,-25|9|0x342832,-27|20|0xc070e1,-6|19|0xb5341f,-17|3|0x982e20", 90, 92, 29, 293, 285);
            FuHeDuoDian   rcfh5 = new FuHeDuoDian("强者招募券", rcdz5, -1, -1);

            _list_yqduodian.Add(rcdz5);
            _list_yqfhduodian.Add(rcfh5);


            /*DuoDianZhaoSe rcdz6 = new DuoDianZhaoSe(0xe97370, "0|-1|0xec8d89,1|-2|0xe86865,1|-4|0xeb8985,2|-5|0xe9726f,2|-6|0xe64e4d,2|-7|0xe96e6c", 90, 286, 124, 465, 135);
             * FuHeDuoDian rcfh6 = new FuHeDuoDian("徽章界面判断后是缺少", rcdz6, -1, -1);
             * _list_yqduodian.Add(rcdz6);
             * _list_yqfhduodian.Add(rcfh6);*/
        }
Exemple #4
0
 public DuoDianZhaoSe findDuodian(DuoDianZhaoSe dz)
 {
     return(_list_yqduodian.Find(d => d == dz
                                 ));
 }
Exemple #5
0
 public void delDuodian(DuoDianZhaoSe dz)
 {
 }
Exemple #6
0
 public void addDuodian(DuoDianZhaoSe dz)
 {
 }
Exemple #7
0
        public Boolean zhuce(int fz)
        {
            WriteLog.WriteLogFile(this._mnqName, "进入到注册环节-登录或注册" + " " + this._jubing);
            Boolean       zccg = false;
            int           tx = -1, ty = -1;
            DuoDianZhaoSe dz2 = new DuoDianZhaoSe(0x353636, "4|0|0xe79941,-3|0|0xd68334,10|19|0xf8b757,8|30|0xf9be66,28|49|0x9a9a9a,33|49|0x9a9a9a", 90, 40, 30, 95, 100);

            mf.myqudianqusezuobiaoByLei(this._jubing, dz2, out tx, out ty);
            if (tx != -1 && ty != -1)
            {
                long ks = MyFuncUtil.GetTimestamp();
                while (true)
                {
                    mf.myqudianqusezuobiaoByLei(this._jubing, dz2, out tx, out ty);
                    if (tx != -1 && ty != -1)
                    {
                        WriteLog.WriteLogFile(this._mnqName, "发现跳过实名");
                        mf.mytap(this._jubing, 80, 92);//点跳过实名
                    }
                    mf.myqudianqusezuobiao(this._jubing, 0xfffbef, "-2|-1|0xe7beba,-3|3|0xca7170,2|2|0xfdf1e7,4|0|0xca3836,-148|-2|0xcecfce,-166|-2|0xb42720", 90, 20, 0, 205, 20, out tx, out ty);
                    if (tx != -1 && ty != -1)
                    {
                        WriteLog.WriteLogFile(this._mnqName, "发现公告,关闭");
                        mf.mytap(this._jubing, tx, ty);
                    }
                    mf.myqudianqusezuobiao(this._jubing, 0xfeda2f, "-6|0|0xe8cc33,-9|0|0x3f2a01,-12|4|0xffd721,5|2|0x4a1800,11|3|0x743409,14|3|0xffd321", 90, 85, 90, 130, 110, out tx, out ty);
                    if (tx != -1 && ty != -1)
                    {
                        WriteLog.WriteLogFile(this._mnqName, "发现进入游戏");
                        mf.mytap(this._jubing, tx, ty);
                        mf.mydelay(4000, 8000);
                        mf.myqudianqusezuobiao(this._jubing, 0xfeda2f, "-6|0|0xe8cc33,-9|0|0x3f2a01,-12|4|0xffd721,5|2|0x4a1800,11|3|0x743409,14|3|0xffd321", 90, 85, 90, 130, 110, out tx, out ty);
                        if (tx == -1 && ty == -1)
                        {
                            zccg = true;
                            break;;
                        }
                    }
                    long jstime = MyFuncUtil.GetTimestamp();
                    if ((jstime - ks) > fz * 60 * 1000)
                    {
                        zccg = false;
                        WriteLog.WriteLogFile(this._mnqName, "注册环节-登录或注册-没有成功完成" + " " + this._jubing);
                        break;;
                    }
                }
                return(zccg);
            }
            ZhangHao zhanghao = new ZhangHao();
            string   name = null, pas = null;
            long     kstime = MyFuncUtil.GetTimestamp();
            int      td     = 0;

            while (true)
            {
                zhanghao.getNameAndPw(this._dqinx, out name, out pas);
                if (name == null && pas == null)
                {
                    if (td == 0)
                    {
                        zhanghao.generateNameAndPas(this._dqinx, 7, out name, out pas);
                        mf.mytap(this._jubing, 108, 64);//点账号注册
                        mf.mydelay(2000, 4000);
                        td = 1;
                    }
                    DuoDianZhaoSe dz = new DuoDianZhaoSe(0x5ecdf3, "-2|12|0x434343,-26|23|0x959595,-26|36|0x959595,-26|45|0xa8a8a8,-26|61|0x1eb9ee,-26|74|0xeb9300", 90, 75, 15, 115, 110);
                    mf.myqudianqusezuobiaoByLei(this._jubing, dz, out tx, out ty);
                    if (tx != -1 && ty != -1)
                    {
                        WriteLog.WriteLogFile(this._mnqName, "进入到账号注册界面");
                    }
                    else
                    {
                        WriteLog.WriteLogFile(this._mnqName, "meiyou进入到账号注册界面" + this._jubing);
                        return(zccg);
                    }
                    mf.mytap(this._jubing, 95, 45);
                    mf.mydelay(2000, 4000);
                    zhanghao.shuruchar(mf, this._dqinx, this._jubing, name);
                    mf.mytap(this._jubing, 91, 57);
                    mf.mydelay(2000, 4000);
                    zhanghao.shuruchar(mf, this._dqinx, this._jubing, pas);
                    mf.mydelay(2000, 4000);
                    if (mf.myGetColor(this._jubing, 136, 71, "1eb9ee"))
                    {
                        WriteLog.WriteLogFile(this._mnqName, "去掉绑定手机对号");
                        mf.mytap(this._jubing, 136, 71);
                        mf.mydelay(1000, 3000);
                    }
                    mf.mytap(this._jubing, 105, 98);
                    mf.mydelay(4000, 6000);
                    mf.myqudianqusezuobiaoByLei(this._jubing, dz, out tx, out ty);
                    if (tx != -1 && ty != -1)
                    {
                        WriteLog.WriteLogFile(this._mnqName, "上述操作完,还在账号注册界面");
                        continue;
                    }
                    while (true)
                    {
                        mf.myqudianqusezuobiaoByLei(this._jubing, dz2, out tx, out ty);
                        if (tx != -1 && ty != -1)
                        {
                            WriteLog.WriteLogFile(this._mnqName, "发现跳过实名");
                            mf.mytap(this._jubing, 80, 92);//点跳过实名
                        }
                        mf.myqudianqusezuobiao(this._jubing, 0xfffbef, "-2|-1|0xe7beba,-3|3|0xca7170,2|2|0xfdf1e7,4|0|0xca3836,-148|-2|0xcecfce,-166|-2|0xb42720", 90, 20, 0, 205, 20, out tx, out ty);
                        if (tx != -1 && ty != -1)
                        {
                            WriteLog.WriteLogFile(this._mnqName, "发现公告,关闭");
                            mf.mytap(this._jubing, tx, ty);
                        }
                        mf.myqudianqusezuobiao(this._jubing, 0xfeda2f, "-6|0|0xe8cc33,-9|0|0x3f2a01,-12|4|0xffd721,5|2|0x4a1800,11|3|0x743409,14|3|0xffd321", 90, 85, 90, 130, 110, out tx, out ty);
                        if (tx != -1 && ty != -1)
                        {
                            WriteLog.WriteLogFile(this._mnqName, "发现进入游戏");
                            mf.mytap(this._jubing, tx, ty);
                            mf.mydelay(4000, 8000);
                            mf.myqudianqusezuobiao(this._jubing, 0xfeda2f, "-6|0|0xe8cc33,-9|0|0x3f2a01,-12|4|0xffd721,5|2|0x4a1800,11|3|0x743409,14|3|0xffd321", 90, 85, 90, 130, 110, out tx, out ty);
                            if (tx == -1 && ty == -1)
                            {
                                zccg = true;
                                break;;
                            }
                        }
                        long js = MyFuncUtil.GetTimestamp();
                        if ((js - kstime) > fz * 60 * 1000)
                        {
                            WriteLog.WriteLogFile(this._mnqName, "没有能够发现进入游戏");
                            break;;
                        }
                    }
                }
                if (zccg == true)
                {
                    WriteLog.WriteLogFile(this._mnqName, "注册环节-登录或注册-成功完成" + " " + this._jubing);
                    break;;
                }
                long jstime = MyFuncUtil.GetTimestamp();
                if ((jstime - kstime) > fz * 60 * 1000)
                {
                    WriteLog.WriteLogFile(this._mnqName, "注册环节-登录或注册-没有成功完成" + " " + this._jubing);
                    break;;
                }
            }
            return(zccg);
        }