Question #404001 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/404001
spyros-liakos posted a new comment:
Finally got this work out!!
regblueline = Region(602,315,100,150)
regblueline = JRegion(regblueline)
clicktoavoiderrordone = Region(1280,95,2,2)
count = False
popupcoc = "error1.png"
popupcoca = "error2.png"
def handler(event):
global count
count = True
wait(2)
print("#Observe Error")
clicktoavoiderrordone.click()
print("con")
event.repeat(2)
return count
regblueline.onAppear(Pattern("error1.png").exact(),handler)
regblueline.onAppear(Pattern("error2.png").exact(),handler)
regblueline.observeInBackground(FOREVER)
Got NO errors, observeinbackgronnd works fine...and the handler returns with
success..!!
So the trick to observe in background always is this on 1.1.1
Thank you!!!
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp