Add back in necessary functionality without eye tracking config on.

master 05D
sigonasr2 4 years ago
parent 1b98d6f72b
commit 9e3e5d4376
  1. BIN
      DivaBot/DivaBot.jar
  2. 54
      DivaBot/src/sig/MyRobot.java

Binary file not shown.

@ -335,14 +335,12 @@ public class MyRobot{
prevDifficulty=difficulty; prevDifficulty=difficulty;
MyRobot.p.repaint(); MyRobot.p.repaint();
if (DrawCanvas.configData.containsKey("EYE_TRACKING_TOGGLE")) { if (DrawCanvas.configData.containsKey("EYE_TRACKING_TOGGLE")) {
if (NEWSONGS.length==0) { MYROBOT.keyPress(KeyEvent.VK_CONTROL);
MYROBOT.keyPress(KeyEvent.VK_CONTROL); MYROBOT.keyPress(KeyEvent.VK_SHIFT);
MYROBOT.keyPress(KeyEvent.VK_SHIFT); MYROBOT.keyPress(KeyEvent.VK_F11);
MYROBOT.keyPress(KeyEvent.VK_F11); MYROBOT.keyRelease(KeyEvent.VK_F11);
MYROBOT.keyRelease(KeyEvent.VK_F11); MYROBOT.keyRelease(KeyEvent.VK_SHIFT);
MYROBOT.keyRelease(KeyEvent.VK_SHIFT); MYROBOT.keyRelease(KeyEvent.VK_CONTROL);
MYROBOT.keyRelease(KeyEvent.VK_CONTROL);
}
} }
} }
} }
@ -357,7 +355,7 @@ public class MyRobot{
lastSongSelectTime=System.currentTimeMillis(); lastSongSelectTime=System.currentTimeMillis();
MYROBOT.setAutoDelay(0); MYROBOT.setAutoDelay(0);
MYROBOT.refreshScoreScreen(); MYROBOT.refreshScoreScreen();
//ImageIO.write(MYROBOT.createScoreScreenCapture(),"png",new File("scoreimage.png")); ImageIO.write(MYROBOT.createScoreScreenCapture(),"png",new File("scoreimage.png"));
File tmp = new File("tmp"); File tmp = new File("tmp");
if (tmp.exists()) { if (tmp.exists()) {
FileUtils.deleteFile(tmp); FileUtils.deleteFile(tmp);
@ -387,19 +385,19 @@ public class MyRobot{
if ((data.combo!=lastcombo || data.fail!=lastfail || data.cool!=lastcool || lastfine!=data.fine || lastsafe!=data.safe || lastsad!=data.sad || lastworst!=data.worst) if ((data.combo!=lastcombo || data.fail!=lastfail || data.cool!=lastcool || lastfine!=data.fine || lastsafe!=data.safe || lastsad!=data.sad || lastworst!=data.worst)
&& data.score!=lastscore /*|| lastpercent!=percent*/){ && data.score!=lastscore /*|| lastpercent!=percent*/){
if (DrawCanvas.configData.containsKey("EYE_TRACKING_TOGGLE")) { if (DrawCanvas.configData.containsKey("EYE_TRACKING_TOGGLE")) {
if (NEWSONGS.length==0) { MYROBOT.keyPress(KeyEvent.VK_CONTROL);
MYROBOT.keyPress(KeyEvent.VK_CONTROL); MYROBOT.keyPress(KeyEvent.VK_SHIFT);
MYROBOT.keyPress(KeyEvent.VK_SHIFT); MYROBOT.keyPress(KeyEvent.VK_F12);
MYROBOT.keyPress(KeyEvent.VK_F12); MYROBOT.keyRelease(KeyEvent.VK_F12);
MYROBOT.keyRelease(KeyEvent.VK_F12); MYROBOT.keyRelease(KeyEvent.VK_SHIFT);
MYROBOT.keyRelease(KeyEvent.VK_SHIFT); MYROBOT.keyRelease(KeyEvent.VK_CONTROL);
MYROBOT.keyRelease(KeyEvent.VK_CONTROL); MYROBOT.refreshScoreScreen();
} Thread.sleep(100);
MYROBOT.refreshScoreScreen();
ImageIO.write(MYROBOT.createScoreScreenCapture(),"png",new File("scoreimage.png"));
data = typeface1.getAllData(MYROBOT.createScoreScreenCapture());
} }
Thread.sleep(100);
MYROBOT.refreshScoreScreen();
ImageIO.write(MYROBOT.createScoreScreenCapture(),"png",new File("scoreimage.png"));
data = typeface1.getAllData(MYROBOT.createScoreScreenCapture());
System.out.println("Results for "+selectedSong.title+" "+data.difficulty+": "+data.display()); System.out.println("Results for "+selectedSong.title+" "+data.difficulty+": "+data.display());
TypeFace2.deepCopyOfficialYPointersFromPointers(); TypeFace2.deepCopyOfficialYPointersFromPointers();
File songFolder = new File(selectedSong.title.replace(":","")+"/"+data.difficulty); File songFolder = new File(selectedSong.title.replace(":","")+"/"+data.difficulty);
@ -427,14 +425,12 @@ public class MyRobot{
SoundUtils.playSound("collect_item.wav"); SoundUtils.playSound("collect_item.wav");
if (DrawCanvas.configData.containsKey("EYE_TRACKING_TOGGLE")) { if (DrawCanvas.configData.containsKey("EYE_TRACKING_TOGGLE")) {
if (NEWSONGS.length==0) { MYROBOT.keyPress(KeyEvent.VK_CONTROL);
MYROBOT.keyPress(KeyEvent.VK_CONTROL); MYROBOT.keyPress(KeyEvent.VK_SHIFT);
MYROBOT.keyPress(KeyEvent.VK_SHIFT); MYROBOT.keyPress(KeyEvent.VK_F11);
MYROBOT.keyPress(KeyEvent.VK_F11); MYROBOT.keyRelease(KeyEvent.VK_F11);
MYROBOT.keyRelease(KeyEvent.VK_F11); MYROBOT.keyRelease(KeyEvent.VK_SHIFT);
MYROBOT.keyRelease(KeyEvent.VK_SHIFT); MYROBOT.keyRelease(KeyEvent.VK_CONTROL);
MYROBOT.keyRelease(KeyEvent.VK_CONTROL);
}
} }
//gotoxy(800,64); //gotoxy(800,64);
//click(); //click();

Loading…
Cancel
Save