コード例 #1
0
        private static void AutoClickClient(string user, string pass)
        {
            Process process;

            if (ProgramThread.WaitForProcessWindow("LolClient", out process))
            {
                while (ProgramThread.IsWindowVisible(process.MainWindowHandle))
                {
                    if (process.HasExited)
                    {
                        return;
                    }
                    if (LolAutoLogger.PixelColorIsWite(process, 195, 320) && LolAutoLogger.PixelColorIsWite(process, 195, 380))
                    {
                        break;
                    }
                    Thread.Sleep(100);
                }
                ProgramThread.SimulateClick(process, 195, 320);
                ProgramThread.SimulateClick(process, 195, 320);
                ProgramThread.SimulateText(process, user);
                ProgramThread.SimulateClick(process, 195, 380);
                ProgramThread.SimulateClick(process, 195, 380);
                ProgramThread.SimulateText(process, pass);
                ProgramThread.SimulateClick(process, 375, 420);
            }
        }
コード例 #2
0
 public void Login(string user, string pass, string lolLauncherPath)
 {
     base.CheckAccess();
     if (string.IsNullOrEmpty(user) || string.IsNullOrEmpty(pass) || string.IsNullOrEmpty(lolLauncherPath))
     {
         throw new ArgumentException();
     }
     this.SuspendOldTask();
     this.loginTask = Task.Factory.StartNew(delegate
     {
         LolAutoLogger.LoginAsync(user, pass, lolLauncherPath);
     });
 }
コード例 #3
0
 private static void LoginAsync(string user, string pass, string lolLauncherPath)
 {
     LolAutoLogger.OpenTheGame(lolLauncherPath);
     LolAutoLogger.AutoClickPatcher();
     LolAutoLogger.AutoClickClient(user, pass);
 }