sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #26531
[Question #250646]: JAVA: Multiple images in a short time.
New question #250646 on Sikuli:
https://answers.launchpad.net/sikuli/+question/250646
I'm always looking to optimize my code. I have a question on 249926.
I have this:
HighestButton = s.find(Continue.toString());
s.click(HighestButton);
while (true){
s.click(HighestButton);
if (s.exists(Result_Defeat.toString() != null){
battle_count = 0;
System.out.println("Result Defeat!");
break;
}
if (s.exists(Result_Victory.toString() != null){
System.out.println("Result Victory!");
break;
}
}
The program is just clicking the continue button. However, since the internet or computer can be slow, I'm just continuing to click the button. Sometimes, the timing of it, it doesn't accept the click. So, after the click, I can get a victory or defeat response. If I rework to try and figure out observe (can't find a lot of documentation on it) will I get better speeds?
If so, do you have any JAVA examples of observe?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.