Beispiel #1
0
        //调用adb点击,并判断点击后要检查的像素点
        private void Tap(int x, int y, PointInfo checkPoint = null)
        {
            string str = string.Format("shell input tap {0} {1}", x, y);

            ExecuteADB(str);

            Thread.Sleep(500);
            if (null != checkPoint)
            {
                while (!DMThunder.IFColor(checkPoint))
                {
                    Thread.Sleep(1000);
                }
            }
        }
Beispiel #2
0
        //点击大话西游
        private void ClickDHXY()
        {
            PointInfo pointInfo = new PointInfo(741, 453, "ffffff");

            Tap(33, 100, pointInfo);
        }
Beispiel #3
0
 public bool IFColor(PointInfo pointInfo)
 {
     pointInfo.color.ToLower();
     return(pointInfo.color.Equals(DMObeject.GetColor(pointInfo.x, pointInfo.y).ToLower()));
 }