Quoted By:
here's the code i used. it's java.
//this auto dances in fire emblem conquest. it needs auto cursor to be off and the person who is
//being danced for to be above the dancer
//also start the loop with both units able to move and the cursor on azura
public static void performSequence(Scanner scanner) {
try {
System.out.print("Enter number of times to run the loop: ");
int times = scanner.nextInt();
Robot robot = new Robot();
// Initial wait before the loop starts
Thread.sleep(5000);
int defaultWait = 150;
for (int i = 0; i < times; i++) {
pressKey(robot, KeyEvent.VK_UP, defaultWait);
pressKey(robot, KeyEvent.VK_Z, defaultWait);
pressKey(robot, KeyEvent.VK_Z, defaultWait);
pressKey(robot, KeyEvent.VK_UP, defaultWait);
pressKey(robot, KeyEvent.VK_Z, defaultWait);
pressKey(robot, KeyEvent.VK_DOWN, defaultWait);
pressKey(robot, KeyEvent.VK_Z, defaultWait);
pressKey(robot, KeyEvent.VK_Z, defaultWait);
pressKey(robot, KeyEvent.VK_Z, defaultWait);
pressKey(robot, KeyEvent.VK_Z, defaultWait);
Thread.sleep(4000); //waiting for xp bar to go away
pressKey(robot, KeyEvent.VK_Z, defaultWait);
pressKey(robot, KeyEvent.VK_UP, defaultWait);
pressKey(robot, KeyEvent.VK_Z, defaultWait);
//waiting for new turn
Thread.sleep(6000);
}
} catch (Exception e) {
e.printStackTrace();
}
}
private static void pressKey(Robot robot, int keyCode, int waitTime) throws InterruptedException {
robot.keyPress(keyCode);
Thread.sleep(waitTime); // hold for a fraction of a second
robot.keyRelease(keyCode);
Thread.sleep(500); // wait after release
}