void jingji() { Waiting waiting = new Waiting(); //如果竞技有红点则点它 Finders.JingjiRedPoint(); if (this.dm.FindSuccess) { waiting.BackClick(227, 607); } else { return; } Thread.Sleep(500); //等待野战PK页打开 waiting.SetFinder(Finders.YezhanPk).WaitShow(); Thread.Sleep(500); //如果‘野战PK’有红点的话 if (Finders.YezhanPkRePoint()) { //点击挑战 waiting.BackClick(422, 355); Thread.Sleep(10000); //等待到主界面 waiting.SetFinder(Finders.MainView).WaitShow(null, waiting.NewBackChecker(Finders.YezhanPkRePoint)); } else if (Finders.WangzhezhenbaRedPoint()) { //点击王者争霸红点 waiting.BackClickFoundPoint(); Thread.Sleep(500); //等待匹配对手界面 waiting.SetFinder(Finders.Pipeiduishou).WaitShow(waiting.BackChecker); Thread.Sleep(500); //点击匹配对手 waiting.BackClickFoundPoint(); Thread.Sleep(500); //等待到主界面 waiting.SetFinder(Finders.MainView).WaitShow(null, waiting.NewBackChecker(Finders.Pipeiduishou)); } }
public void Main(string[] args) { this.init(); Finders.Tiaozhan(); //mojie(); return; do { jingji(); Thread.Sleep(500); } while (true); Controller.ViewPrintLine("ok!"); }