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); }
public Boolean zhuce(int fz) { WriteLog.WriteLogFile(this.mnqName, "进入到注册环节-点游客登录" + " " + this.jubing); Boolean abc = true; long kstime = mf.GetTime(); int ox = -1; int oy = -1; while (true) { mf.myqudianqusezuobiao(this.jubing, 0x525252, "-5|1|0xffffff,-12|2|0xffffff,-12|6|0xe1e1e1,-22|5|0xfefefe,59|133|0xebebeb,49|133|0xd6d6d6,46|126|0xf6f6f6,39|132|0xf8f8f8,28|134|0xb1b1b1", 90, 0, 0, 959, 539, out ox, out oy); if (ox != -1 && oy != -1) { mf.mydelay(200, 400); mf.mytap(this.jubing, ox, oy); mf.mydelay(2000, 3000); } long jstime = mf.GetTime(); if ((ox == -1 && (jstime - kstime) > fz * 60 * 1000)) { abc = false; break; } if (ox == -1 && oy == -1) { int oxx = -1; int oxy = -1; mf.myqudianqusezuobiao(this.jubing, 0x080708, "0|-7|0x3d3c3d,-6|-7|0x525252,-6|-16|0x8e8e8e,-16|0|0x080708,-15|7|0x8e8e8e,3|15|0x969696,179|44|0xdadada,170|44|0xdadada", 90, 280, 430, 500, 510, out oxx, out oxy); if (oxx != -1 && oxy != -1) { WriteLog.WriteLogFile(this.mnqName, "找到游客登录坐标-break " + this.jubing); break; } mf.myqudianqusezuobiao(this.jubing, 0x161516, "-5|0|0xffffff,-5|3|0xffffff,14|53|0x1f1a1c,11|59|0x242124,-22|-47|0x393839,-9|-50|0x393a39,25|-51|0x393739,-291|-89|0x4d4a4d", 90, 0, 0, 959, 539, out oxx, out oxy); if (oxx != -1 && oxy != -1) { WriteLog.WriteLogFile(this.mnqName, "认证系统错误,跳过录入信息" + this.jubing); mf.mydelay(200, 400); mf.mytap(this.jubing, oxx, oxy); mf.mydelay(2000, 4000); mf.mytap(this.jubing, 488, 377); mf.mydelay(2000, 4000); } mf.myqudianqusezuobiao(this.jubing, 0x676467, "-8|0|0xdddbdd,-12|0|0x5f5f5f,-13|5|0x595959,-22|5|0xb8bfb8,-28|38|0xa7a7a7,-40|45|0x8b8a8b,-29|45|0x787778,-8|-15|0x525252", 90, 430, 360, 480, 430, out oxx, out oxy); if (oxx != -1 && oxy != -1) { WriteLog.WriteLogFile(this.mnqName, "找到游客登录坐标,点击登录" + this.jubing); mf.mydelay(200, 400); mf.mytap(this.jubing, oxx, oxy); mf.mydelay(2000, 3000); } } } if (!abc) { WriteLog.WriteLogFile(this.mnqName, "找寻游客登录坐标失败"); } WriteLog.WriteLogFile(this.mnqName, "进入到注册环节-点同意协议" + " " + this.jubing); kstime = mf.GetTime(); ox = -1; oy = -1; while (true) { mf.myqudianqusezuobiao(this.jubing, 0x080708, "0|-7|0x3d3c3d,-6|-7|0x525252,-6|-16|0x8e8e8e,-16|0|0x080708,-15|7|0x8e8e8e,3|15|0x969696,179|44|0xdadada,170|44|0xdadada", 90, 280, 430, 500, 510, out ox, out oy); if (ox != -1 && oy != -1) { mf.delay(1000); mf.mytap(this.jubing, ox, oy); WriteLog.WriteLogFile(this.mnqName, "找到同意协议坐标" + ox + " " + oy + " " + this.jubing + " " + bangdingjieguo); mf.mydelay(2000, 3000); mf.mytap(this.jubing, 473, 501); mf.mydelay(2000, 3000); } mf.myqudianqusezuobiao(this.jubing, 0x21596e, "0|-5|0x22546b,-24|1|0x235e75,-6|8|0x22607d,23|0|0x22596f,-175|-45|0xffffff,-148|-46|0xf7f7f7,-121|-46|0xbebebe,-121|-78|0x3a3a3a", 90, 280, 320, 510, 550, out ox, out oy); if (ox != -1 && oy != -1) { mf.delay(1000); mf.mytap(this.jubing, ox, oy); WriteLog.WriteLogFile(this.mnqName, "已点击同意," + ox + " " + oy + " " + this.jubing + " " + bangdingjieguo); mf.mydelay(2000, 3000); } if (ox == -1 && oy == -1) { int oxx = -1; int oxy = -1; mf.myqudianqusezuobiao(this.jubing, 0xacacac, "-11|0|0x999a99,-11|6|0xa5a6a5,-11|30|0xdc9c05,-11|37|0x795c17,-19|36|0xeba602,26|76|0xa7a6a7,71|71|0xfefefe,83|70|0xffffff", 90, 0, 0, 959, 539, out oxx, out oxy); if (oxx != -1 && oxy != -1) { WriteLog.WriteLogFile(this.mnqName, "找到同意协议坐标-break" + this.jubing + " " + bangdingjieguo); break; } } long jstime = mf.GetTime(); if ((ox == -1 && (jstime - kstime) > fz * 60 * 1000)) { abc = false; break; } } if (!abc) { WriteLog.WriteLogFile(this.mnqName, "找寻同意协议坐标失败"); } kstime = mf.GetTime(); ox = -1; oy = -1; WriteLog.WriteLogFile(this.mnqName, "进入到注册环节-点输入姓名" + " " + this.jubing); while (true) { mf.myqudianqusezuobiao(this.jubing, 0xacacac, "-11|0|0x999a99,-11|6|0xa5a6a5,-11|30|0xdc9c05,-11|37|0x795c17,-19|36|0xeba602,26|76|0xa7a6a7,71|71|0xfefefe,83|70|0xffffff", 90, 0, 0, 959, 539, out ox, out oy); if (ox != -1 && oy != -1) { WriteLog.WriteLogFile(this.mnqName, "找到输入姓名按钮 " + ox + " " + oy); mf.mydelay(3000, 4200); mf.mytap(this.jubing, 483, 375); //先点击确定 mf.mydelay(5000, 6200); mf.mytap(this.jubing, 476, 380); //先点击出现的对号提示 确保可以点开输入栏 mf.mydelay(3000, 4200); mf.mytap(this.jubing, ox, oy); mf.mydelay(2000, 3000); } mf.myqudianqusezuobiao(this.jubing, 0x101010, "-4|-4|0x1d1c1d,4|-4|0x100c10,8|-7|0x1e211e,10|-9|0x1f1a1f,1|-22|0x1f1a1f,-1|-8|0xffffff,-16|6|0x0b0e0b,16|6|0x131413", 90, 460, 360, 500, 390, out ox, out oy); if (ox != -1 && oy != -1) { WriteLog.WriteLogFile(this.mnqName, "点确定后出现的提示 " + ox + " " + oy); mf.mydelay(3000, 4200); mf.mytap(this.jubing, ox, oy); mf.mydelay(5000, 6200); mf.mytap(this.jubing, 385, 304);//先点击出现的对号提示 确保可以点开输入栏 mf.mydelay(3000, 4200); } bool a = mf.myGetColor(this.jubing, 416, 487, "ffffff"); if (a) { WriteLog.WriteLogFile(this.mnqName, "打开了输入按钮-break" + this.jubing); mf.mydelay(5000, 6000); break; } long jstime = mf.GetTime(); if ((ox == -1 && (jstime - kstime) > fz * 60 * 1000)) { abc = false; break; } } if (!abc) { WriteLog.WriteLogFile(this.mnqName, "找寻输入姓名坐标失败"); } kstime = mf.GetTime(); ox = -1; oy = -1; WriteLog.WriteLogFile(this.mnqName, "进入到注册环节-逐个录入" + " " + this.jubing); while (true) { mf.myqudianqusezuobiao(this.jubing, 0xffffff, "14|0|0xffffff,469|-2|0x353535,469|-10|0x212121,460|-9|0x212121,460|-3|0x353535,464|-1|0x212121,82|-114|0xf8f8f8,89|-111|0xb4b4b4", 90, 0, 0, 959, 539, out ox, out oy); if (ox != -1 && oy != -1) { mf.mydelay(1000, 2000); ZhangHao zhanghao = new ZhangHao(); char[] suijichar = new char[] { '1', '2' }; foreach (char a in suijichar) { mf.myKeyPressChar(this.jubing, a.ToString()); mf.delay(800); WriteLog.WriteLogFile(this.mnqName, "录入姓名中" + a.ToString() + this.jubing + " " + bangdingjieguo); } mf.mydelay(6000, 8000); WriteLog.WriteLogFile(this.mnqName, "点击录入字符界面的确定 " + this.jubing); mf.mytap(this.jubing, 878, 490);//点击录入字符界面的确定 mf.mydelay(6000, 8000); WriteLog.WriteLogFile(this.mnqName, "点击确定 --保存姓名 " + this.jubing); mf.mytap(this.jubing, 483, 379); //点击确定 --保存姓名 mf.mydelay(5000, 6000); mf.mytap(this.jubing, 483, 379); //点击确定 --保存姓名 mf.mydelay(5000, 6000); mf.mytap(this.jubing, 483, 379); //点击确定 --保存姓名 mf.mydelay(5000, 6000); WriteLog.WriteLogFile(this.mnqName, "录入姓名完毕" + suijichar.ToString() + ",break"); mf.mydelay(200, 300); long kstime1 = mf.GetTime(); while (true) { mf.myqudianqusezuobiao(this.jubing, 0xefefef, "0|-3|0x9a9a9a,-3|-3|0xf9f9f9,-6|-3|0xd5d5d5,-6|3|0x595959,-1|3|0x959595,-1|-7|0x424242,3|-4|0x6e6e6e,6|0|0xa4a4a4", 90, 460, 360, 490, 390, out ox, out oy); if (ox != -1 && oy != -1) { mf.mydelay(2000, 3000); mf.mytap(this.jubing, ox, oy); mf.mydelay(2000, 3000); } long jstime1 = mf.GetTime(); if (ox == -1 && oy == -1 && ((jstime1 - kstime1) > 20 * 1000)) { break; } if (((jstime1 - kstime1) > 1 * 60 * 1000)) { abc = false; break; } } break; } long jstime = mf.GetTime(); if ((ox == -1 && (jstime - kstime) > fz * 60 * 1000)) { abc = false; break; } } if (!abc) { WriteLog.WriteLogFile(this.mnqName, "录入姓名失败"); } return(abc); }