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); }