Exemplo n.º 1
0
        //public void reset()
        //{
        //
        //}

        public void runErrorCheck(Bitmap screen)
        {
            if (errorCheckScanStopwatch.DurationInSeconds() <= 5.0)
            {
                return;
            }
            errorCheckScanStopwatch.Reset();

            if (dontSendClickStopwatch.DurationInMilliseconds() >= 500 || VisualCortex.IsTest)
            {
                dontSendButtonPosition = AutoQueueDetection.findImageInScreen(screen, dontSendButton, 465, 535, 10, 10, 0.95);
                if (dontSendButtonPosition.x != -1)
                {
                    Console.WriteLine("\tFound dont send button");
                    if (!VisualCortex.IsTest)
                    {
                        MotorCortex.clickMouseAt(dontSendButtonPosition.x + 10, dontSendButtonPosition.y + 10);
                        moveMouseToWithDelay(0, 0, 200);
                    }
                    dontSendClickStopwatch.Reset();
                    return;
                }
            }
        }