Пример #1
0
        private void WaitFishingGaugeInBlueArea()
        {
            //Search when fishing gauge are in blue area
            //var fishingGauge = new Rect { X = 930, Y = 410, Width = 5, Height = 10 };
            var refColor = new RegonizeEngine.ColorAcceptance {
                BaseColor = Color.FromArgb(93, 142, 172), Offset = 30
            };
            var gaugePoint = new Point(1060, 415);

            while (true)
            {
                var color = _regonizeArea.GetColor(gaugePoint);
                if (refColor.Validate(color))
                {
                    WaitFishingGaugeInBlueArea_Callback(this, EventArgs.Empty);
                    break;
                }

                Thread.Sleep(10);
            }
        }