secondmonitor
sigonasr2 4 years ago
parent e966f73dfc
commit d7d9cb12b0
  1. BIN
      DivaBot/DivaBot.jar
  2. 2
      DivaBot/calibration_data.txt
  3. 8
      DivaBot/config.txt
  4. 6
      DivaBot/src/sig/MyRobot.java

Binary file not shown.

@ -1,4 +1,4 @@
471 470
198 198
1529 1529
791 791

@ -1,11 +1,11 @@
DISPLAYDATA -16776961*-13369549*100*Gungsuh*600*90*300*Song Title (Japanese+Romanized)*176*136*~-16776961*-13369549*24*Gulim*400*40*300*Overall Rating|Song Title (Romanized)|FC Count*176*240* DISPLAYDATA -16776961*-13369549*100*Gungsuh*600*90*300*Song Title (Japanese+Romanized)*176*136*~-16776961*-13369549*24*Gulim*400*40*300*Overall Rating|Song Title (Romanized)|FC Count*176*240*
LAST_HEIGHT 90 LAST_HEIGHT 40
WIDTH 1127 WIDTH 1127
HEIGHT 765 HEIGHT 765
BACKGROUND -6697729 BACKGROUND -6697729
LAST_TEXT -13369549 LAST_TEXT -13369549
LAST_FONT Gungsuh LAST_FONT Gulim
LAST_FONTSIZE 100 LAST_FONTSIZE 24
LAST_BACKGROUND -16776961 LAST_BACKGROUND -16776961
LAST_WIDTH 300 LAST_WIDTH 400
LAST_DELAY 300 LAST_DELAY 300

@ -193,13 +193,13 @@ public class MyRobot{
boolean success = false; boolean success = false;
do { do {
username = ""; username = "";
enteredValue = JOptionPane.showInputDialog("First time boot!\n\nPlease login on http://www.projectdivar.com and paste your App Authentication Token here.\nThe App Authentication token is used to record your scores and verify who you are! Do <b>not</b> share it with others!!!", "XXXXX-XXXXX-XXXXX"); enteredValue = JOptionPane.showInputDialog("First time boot!\n\nPlease login on http://www.projectdivar.com and paste your App Authentication Token here.\nThe App Authentication token is used to record your scores and verify who you are! Do not share it with others!!!", "XXXXX-XXXXX-XXXXX");
if (enteredValue==null) { if (enteredValue==null) {
System.exit(0); System.exit(0);
} }
if (!enteredValue.isEmpty()) { if (!enteredValue.isEmpty()) {
do { do {
username = JOptionPane.showInputDialog("Please enter your <b>Project DivaR</b> username:",""); username = JOptionPane.showInputDialog("Please enter your Project DivaR username:","");
} while (username.isEmpty()); } while (username.isEmpty());
if (username==null) { if (username==null) {
System.exit(0); System.exit(0);
@ -243,7 +243,7 @@ public class MyRobot{
String result = s.hasNext() ? s.next() : ""; String result = s.hasNext() ? s.next() : "";
System.out.println(result); System.out.println(result);
if (result.equalsIgnoreCase("\"authentication success!\"")) { if (result.equalsIgnoreCase("\"authentication success!\"")) {
FileUtils.writetoFile(new String[] {username,authenticationToken,"The App Authentication token is used to record your scores and verify who you are! Do <b>not</b> share it with others!!!"}, "authToken.txt", false); FileUtils.writetoFile(new String[] {username,authenticationToken,"The App Authentication token is used to record your scores and verify who you are! Do not share it with others!!!"}, "authToken.txt", false);
USERNAME=username; USERNAME=username;
AUTHTOKEN=authenticationToken; AUTHTOKEN=authenticationToken;
return true; return true;

Loading…
Cancel
Save