image - Using logic when working with Sikuli plug-in in Java (NetBeans) -
first time post here!
so, i've have been trying solve (hopefully) rather simple issue i'm having code.
so, scenario i'm making sikuli search 2 images, , execute different actions based on finds. example of code looks following:
int x=2; int y; while(x>1){ if(s.exists(victory.similar((float)0.70)) != null){ y=1; } else if(s.exists(defeated.similar((float)0.70)) != null){ y=2; } else{ x++;} }
but problem having, fact works only when find first alternative - being blind other one.
this happening on several scenarios within code, of similar structure.
a detail worth mentioning fact running code swingworker, yet still not see reason influence code due rest of part of script working (as long not part 1 mentioned above!).
thank in advance help!
the other alternative seen if first (false) if want check 2 if statements must delete else word
Comments
Post a Comment