sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12757
Re: [Question #206657]: Wait for image A or B or C forever, then take action accordingly
Question #206657 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/206657
Status: Answered => Open
denywinarto is still having a problem:
->elif RegE.exists(Pattern("ErrorReport.png").similar(0.88),0):
click(Pattern("Dontsend.png").similar(0.92))
RegE.stopObserver()
break
???
exit---<
http://i957.photobucket.com/albums/ae55/deny_winarto/20120828_170120.jpg
This part is some kind of bug trap,
you know when a program crashes usually they show 'send error report' window?
The reason i put RegE.stopObserver() there,
is because i want it to continuously monitor for send error report window throughout the script,
(since it might happen anytime due to the nature of the program)
Am i doing it correctly?
And also, i need the script to repeat itself whenever it found that bug.
i.e : after the 'break' part (the ??? part)
So it's something like this :
1.run the script,
2. program crashes,
3. 'send error report' window shows up
4. script clicks 'don't send'
5. repeat the entire script
I'm trying to do the 5th step,
I couldn't find a way to do 'go to line' either
any idea?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.