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); } }
public static bool ContinueRace() { try { if (AcSharedMemory.Instance.IsPaused) { AcMousePretender.ClickContinueButton(); return(true); } } catch (Exception ex) { Logging.Error(ex); } return(false); }
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(); } }
private static void Run() { AcMousePretender.ClickStartButton(); }