private async void ImageRecognitionLockChampion()
        {
            bool lockChampion = false;

            while (!lockChampion || CancelAutoLockChampion)
            {
                TakeFullDesktopScreenShot();
                if (!lockChampion)
                {
                    lockChampion = await ImageRecognition.AutoLockChampionImageRecognition();
                }
                if (lockChampion)
                {
                    Actions.ClickLockButton();
                    SetLiveStatusText("Champion has been locked.", Color.Green);
                }
            }
        }
Ejemplo n.º 2
0
        private async void LockChampion()
        {
            bool lockChampion = false;

            while (!lockChampion)
            {
                TakeFullDesktopScreenShot();
                if (!lockChampion)
                {
                    lockChampion = await ImageRecognition.AutoLockChampionImageRecognition();
                }
                if (lockChampion)
                {
                    int[] coordinates = HelpFile.GetXYCoordinatesRegex(Options.LockButtonCoodinates);
                    MouseEvent.MoveMouseXYToAndClick(coordinates[0], coordinates[1]);
                    HelpFile.Log("Lock Button: Moved Mouse To Lock Button And Clicked X:" + coordinates[0] + ", Y:" + coordinates[1] + ".");

                    AutoLockChampion = true;
                    SetLiveStatusText("Champion has been locked.", Color.Green);
                }
            }
        }