public override void OnMatched(ScriptBase script) { script.Press(new DualShockState() { DPad_Left = true }); script.Sleep(Settings.Default.InputDelay); script.Press(new DualShockState() { DPad_Left = false }); script.Sleep(Settings.Default.InputDelay); script.Press(new DualShockState() { DPad_Left = true }); script.Sleep(Settings.Default.InputDelay); script.Press(new DualShockState() { DPad_Left = false }); script.Sleep(Settings.Default.InputDelay); script.Press(new DualShockState() { Cross = true }); script.Sleep(Settings.Default.InputDelay); script.Press(new DualShockState() { Cross = false }); }
public override void OnMatched(ScriptBase script) { var waitTime = 500; Logger.Writer("Reached Main Menu, checking if the girls need a break..."); // Checking if hosts need a break if (script.MatchTemplate(N1StatusMap, 98) || script.MatchTemplate(N2StatusMap, 98) || script.MatchTemplate(N3StatusMap, 98) || script.MatchTemplate(N4StatusMap, 98) || script.MatchTemplate(N5StatusMap, 98) || script.MatchTemplate(N6StatusMap, 98)) { Logger.Writer("Yup, girls need a break, proceeding to Assign Floor Crew..."); MultiplePresses.Press("DPad_Down", 1, waitTime, script); MultiplePresses.Press("Cross", 2, waitTime, script); // Entered Assign Floor Crew } else { Logger.Writer("Nope, they're all good, moving on to the shift..."); MultiplePresses.Press("Cross", 1, waitTime, script); MultiplePresses.Press("DPad_Up", 1, waitTime, script); MultiplePresses.Press("Cross", 2, waitTime, script); MultiplePresses.Press("Cross", 1, waitTime, script); script.Sleep(1000); MultiplePresses.Press("Cross", 1, waitTime, script); } }
public override void OnMatched(ScriptBase script) { script.Press(new DualShockState() { Cross = true }); script.Sleep(Settings.Default.TowerStartDelay); }
public override void OnMatched(ScriptBase script) { // Press play script.Press(new DualShockState() { Cross = true }); // Wait 10 seconds script.Sleep(10000); }
public override void OnMatched(ScriptBase script) { var sleepTime = 1000; script.Press(new DualShockState() { Cross = true }); script.Sleep(sleepTime); script.Press(new DualShockState() { Cross = true }); script.Sleep(sleepTime); script.Press(new DualShockState() { Cross = true }); script.Sleep(sleepTime); }
public override void OnMatched(ScriptBase script) { script.SetButtons(new DualShockState() { LX = 0 }); script.Sleep(4000); script.SetButtons(new DualShockState() { LX = 128 }); }
public static void Press(string keytopress, int TimesPress, int waiter, ScriptBase script) { keytopress = keytopress.ToLower(); while (TimesPress > 0) { switch (keytopress) { case "cross": script.Press(new DualShockState() { Cross = true }); break; case "circle": script.Press(new DualShockState() { Circle = true }); break; case "dpad_right": script.Press(new DualShockState() { DPad_Right = true }); break; case "dpad_left": script.Press(new DualShockState() { DPad_Left = true }); break; case "dpad_down": script.Press(new DualShockState() { DPad_Down = true }); break; case "dpad_up": script.Press(new DualShockState() { DPad_Up = true }); break; } script.Sleep(waiter); TimesPress--; } }
public override void OnMatched(ScriptBase script) { // Prevent infinite loop while (!script.Host.Worker.CancellationPending) { // Scene has changed if (!Match(script)) { break; } // Wait 1 second script.Sleep(1000); // Take screenshot script.CaptureFrame(); } // Take screenshot script.CaptureFrame(); // Wait 5 seconds script.Sleep(5000); }
public override void OnMatched(ScriptBase script) { int index = 0; while (SceneConditionHandler.HandleConditions(Settings.Instance.Data.Game, script)) { int value = ++index; if (value > 50) { break; } script.SetButtons(new DualShockState() { LX = 0 }); script.Sleep(1000); } script.SetButtons(new DualShockState() { LX = 128 }); }
public override void OnMatched(ScriptBase script) { var mainscript = script as Script; mainscript.MainForm.Log("Entered Freemode"); script.Press(new DualShockState() { Options = true }); script.Sleep(400); script.Press(new DualShockState() { DPad_Right = true }); script.Sleep(350); script.Press(new DualShockState() { Cross = true }); script.Sleep(350); script.Press(new DualShockState() { Cross = true }); script.Sleep(350); script.Press(new DualShockState() { DPad_Down = true }); script.Sleep(350); script.Press(new DualShockState() { Cross = true }); script.Sleep(350); script.Press(new DualShockState() { DPad_Down = true }); script.Sleep(350); script.Press(new DualShockState() { DPad_Down = true }); script.Sleep(350); script.Press(new DualShockState() { DPad_Down = true }); script.Sleep(350); script.Press(new DualShockState() { Cross = true }); script.Sleep(350); script.Press(new DualShockState() { DPad_Down = true }); script.Sleep(350); script.Press(new DualShockState() { DPad_Down = true }); script.Sleep(350); script.Press(new DualShockState() { DPad_Down = true }); script.Sleep(350); script.Press(new DualShockState() { DPad_Down = true }); script.Sleep(350); script.Press(new DualShockState() { DPad_Down = true }); script.Sleep(350); script.Press(new DualShockState() { DPad_Down = true }); script.Sleep(350); script.Press(new DualShockState() { DPad_Down = true }); script.Sleep(350); script.Press(new DualShockState() { Cross = true }); script.Sleep(350); for (int i = 1; i <= 2; i++) { script.Press(new DualShockState() { DPad_Down = true }); script.Sleep(50); } script.Press(new DualShockState() { Cross = true }); script.Sleep(350); script.Press(new DualShockState() { Cross = true }); script.Sleep(30000); }