public int ChangeDateCoreFast(bool first = false) { Log($"SwitchOS.ChangeDateCoreFast({first})"); const int WAIT_MS = 50; int reset = 0; while (true) { NS.Down(Keys.A); Wait(200); if (first) { NS.Down(Keys.LStick.Right); Wait(WAIT_MS); NS.Down(Keys.RStick.Right); Wait(WAIT_MS); NS.Reset(); } else { NS.Down(Keys.LStick.Left); Wait(WAIT_MS); NS.Down(Keys.RStick.Left); Wait(WAIT_MS); NS.Down(Keys.HAT.Left); Wait(WAIT_MS); } // change date NS.Up(Keys.A); NS.Down(Keys.LStick.Up); Wait(WAIT_MS); NS.Down(Keys.RStick.Right); Wait(WAIT_MS); NS.Down(Keys.LStick.Right); Wait(WAIT_MS); NS.Down(Keys.HAT.Right); Wait(WAIT_MS); if (!VideoCapture.Match(45, 478, Color.FromArgb(105, 105, 105), DefaultColorCap)) { // reset Reset(); Wait(300); Press(Keys.HAT.Down); Wait(100); Press(Keys.HAT.Down); Wait(100); reset++; continue; } NS.Down(Keys.A); Wait(WAIT_MS); NS.Reset(); Wait(200); return(reset); } }