sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #11253
Re: [Question #200765]: new to sikuli need help please
Question #200765 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/200765
Status: Open => Answered
RaiMan proposed the following answer:
--- setthrowexception Is I need the program to always loop
The one has nothing to do with the other.
My recommendation on that is true all over the place ;-)
--- my example was for one go only
If you need to put it into a loop, the principle is:
# general assignments and settings
icon_start = "image of the original icon"
# this should have as little background as possible
myreg = "a region, where we expect the icon to appear, as small as
possible"
# now we can loop
while True: # would loop forever until killed manually
type("mykey")
# other stuff from the example
# now we can click
rightClick(mIcon.getCenter().offset(11,9))
# something after we have clicked
print "we enter the next round" # back to the while again
print "this should never be printed, because I am the first statement
after a forever-loop"
more info on loops in Sikuli: faq 1437
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.