Region() example help
Hi Sikuli Community
I have been at it for sometime trying to use the region() function in Sikuli and have referred to many example, unfortunately not complete but sort of get the idea.
Anyway what I am trying to do is test a program that has a scroll button, it is instructed to click a button until an image appears in a scroll box. The code below works but scans very slow, I have tried to insert examples from others into it but sadly can't get it to work...
=======
#Test if the department sale button is there
if not exists(
popup(
exit(1)
else:
hover(
click()
#This is where I get stuck
def Region_with():
reg = Region(
reg.highlight(5) #This confirms it is looking at the area
#And this where I don't know how to tell "while not exists" to only scan in the area above
while not exists ("dept_list.png"):
click(
click(
else:
if exists(
type("1000" + Key.ENTER)
wait("total_
=======
What an awesome program, love how python is used and its teaching me more everyday.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: