← Back to team overview

sikuli-driver team mailing list archive

[Question #266886]: change location and not duplicating results

 

New question #266886 on Sikuli:
https://answers.launchpad.net/sikuli/+question/266886

So, I have a couple questions...

1) I used to have the old version of the jar. I would do a find. get the Match and do Match.click(). In some areas, I had to do Match.click().below(70).left(-75). However, I can't do that anymore. I have tried screen.click(match).below(70).left(-75), but it doesn't seem to work as it has in the past.

2) When doing multiple runs, I would close out of the screen. Open it back up. When I run a match.score() they are over 95%. However, when I try on the same screen with a different login, I can't get them to match up. It would appear that the location on the screen changes the percentage of the score. However, that is just a guess. 

This is my code:
							while(option_selection.hasNext()){
								Match down_arrow = option_selection.next();
								if (down_arrow.getScore() < .96)
									continue;
								s.click(down_arrow);
								for (int x = 0; x <=10; x++){
									Thread.sleep(200);
									s.type(Key.UP);
								}
								s.type(Key.DOWN);
								s.type(Key.ENTER);
								Thread.sleep(500);
								
								
							}

It works with one user, but when I log into the next and on the same screen it doesn't work. 

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.