示例#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);
        }
示例#3
0
        private void Run(bool allowCmd)
        {
            if (_ran)
            {
                return;
            }

            if (!_socketFailed && allowCmd)
            {
                if (InternalUtils.AcControlPointExecute(InternalUtils.AcControlPointCommand.StartGame))
                {
                    _ran = true;
                    return;
                }

                _socketFailed = true;
            }

            if (IsAcWindowActive())
            {
                AcMousePretender.ClickStartButton();
            }
        }
示例#4
0
 private static void Run()
 {
     AcMousePretender.ClickStartButton();
 }