Deceiver Posted September 1, 2015 Share Posted September 1, 2015 -dialogues.clickContinue() spam clicks the option and the next part of the dialogue is unable to load to due to spam click i have -> if (dialogues.indialogue()) { dialogues.clickContinue(); } but it spam clicks so much next interface wont load Quote Link to comment Share on other sites More sharing options...
Mysteryy Posted September 1, 2015 Share Posted September 1, 2015 -dialogues.clickContinue() spam clicks the option and the next part of the dialogue is unable to load to due to spam click i have -> if (dialogues.indialogue()) { dialogues.clickContinue(); } but it spam clicks so much next interface wont load Add in a sleep after: dialogues.clickContinue(); 1 Quote Link to comment Share on other sites More sharing options...
FrostBug Posted September 1, 2015 Share Posted September 1, 2015 The API isn't broken. Your implementation might be, tho. What value are you returning from onLoop after clicking continue? Quote Link to comment Share on other sites More sharing options...
Bobrocket Posted September 1, 2015 Share Posted September 1, 2015 Your onLoop() will be executing anywhere from 5-10 times per second (depending on your return value of course, should typically have it at around 215ms), so you can imagine it would be clicking 5-10 times per second since it will just continue the loop after clicking continue. A way to do this would be to see if there is a widget with the text "Please wait...", as this is the substitute when you click continue (right?), and if there is, you wait. Another way is to sleep until the widget changes/disappears. Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted September 1, 2015 Share Posted September 1, 2015 (edited) if(dialogues.isPendingContinuation() || dialogues.clickContinue()) return random(...); Edited September 1, 2015 by Flamezzz 2 Quote Link to comment Share on other sites More sharing options...
Eliot Posted September 1, 2015 Share Posted September 1, 2015 sleep(); 1 Quote Link to comment Share on other sites More sharing options...
Dark Magician Posted September 3, 2015 Share Posted September 3, 2015 if (getDialogues().isPendingContinuation()) { getDialogues().clickContinue(); return random(900 , 1200); } 1 Quote Link to comment Share on other sites More sharing options...