sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17591
Re: [Question #227390]: For Loop problem
Question #227390 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/227390
Shawn Robertson posted a new comment:
I figured out what i did wrong, i didnt have a wait command between
type('b')
waitVanish(Pattern("Client-1.png").similar(0.94), 120)
my new code is:
def billassist_open_close(id):
type('b', KeyModifier.ALT)
type('b')
wait("BillingAssis.png", 120)
wait(Pattern("1366833700322.png").similar(0.94), 120)
waitVanish(Pattern("1366833700322.png").similar(0.96), 120)
type('w', KeyModifier.CTRL)
for x in range(0, 20):
billassist(x)
and it runs fine now.
doh need to check my code better next time, sorry guys.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.