コード例 #1
0
 private void InjectionTmr_Tick(object sender, EventArgs e)
 {
     if (IsInjected == false)
     {
         if (Properties.Settings.Default.InjectionType == "Automatic")
         {
             InjectBtn.Visible = false;
             InjectionTmr.Stop();
             InjectDLL();
         }
         else if (Properties.Settings.Default.InjectionType == "Manual")
         {
             InjectionTmr.Stop();
             InjectBtn.Visible = true;
         }
     }
     else
     {
     }
 }
コード例 #2
0
 private void ProcessTmr_Tick(object sender, EventArgs e)
 {
     Process[] Name = Process.GetProcessesByName("RocketLeague");
     if (Name.Length == 0)
     {
         RLLbl.Text     = "Rocket League is not running.";
         StatusLbl.Text = "Status: Uninjected.";
     }
     else
     {
         RLLbl.Text = "Rocket League is running.";
         try
         {
             InjectionTmr.Interval = Properties.Settings.Default.Timeout;
         } catch (System.Exception ex)
         {
             InjectionTmr.Interval = 2500;
         }
         InjectionTmr.Start();
     }
 }