here is what I need to do. Please let me know what I should add or change.
Problem: In the task I'm having, sometimes there is a random popup with a slider. When this pops up, Sikuli will throw a FindFailed
exception. Instead I would like this script to scan for an image and do the slide action and then retry looking for what it was looking for before. I'm pretty sure it's just a couple of lines I need to add at the top of the code.
Example: let's say if it can't find 5.png
, it will throw a prompt asking for user input. Instead, I want it to search for the image then do a slide action and then start looking for image 5.png
again and continue.
Code below:
Region(example Region)
setFindFailedResponse(PROMPT)
Settings.MoveMouseDelay=0
click("1.png")
click("2.png")
click("3.png")
click("4.png")
click("5.png")
click("6.png")
click("7.png")