示例#1
0
 private void OnKey(object sender, KeyEventArgs e)
 {
     try {
         if (e.KeyCode == Keys.Escape && !e.Control && !e.Shift && !e.Alt && AcSharedMemory.Instance.IsPaused &&
             (DateTime.Now - AcSharedMemory.Instance.PauseTime).TotalSeconds > 0.15)
         {
             AcMousePretender.ClickContinueButton();
         }
     } catch (Exception ex) {
         Logging.Error(ex);
     }
 }
示例#2
0
        public static bool ContinueRace()
        {
            try {
                if (AcSharedMemory.Instance.IsPaused)
                {
                    AcMousePretender.ClickContinueButton();
                    return(true);
                }
            } catch (Exception ex) {
                Logging.Error(ex);
            }

            return(false);
        }