sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #09041
Re: [Question #189054]: how to generate sequential numbers as my script saves screen grabs
Question #189054 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/189054
Status: Open => Answered
RaiMan proposed the following answer:
ok, thanks for the info.
Then put the following line in the first line of your script (this
counts from 1 and steps by 2):
for pnum in range(1, 400, 2):
then select all your current script lines below this first line and
press tab (this indents your code one level, to make it the body of the
loop).
the first type statement has to be:
type("%03d"%pnum)
and the second type statement has to be:
type("%03d"%(pnum+1))
All the other comments above (#3, #4) still apply.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.