sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #09032
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:
Since I do not know, where you want to put your page number, this is a
skeleton
current = 10 # last used page number
max = 15
while current < max:
current += 1 # next page number
print "Current page number:", current
currentText = "- %d -"%(current) # a formatted text version
print "Formatted current page number:", currentText
# coding follows, that might use current/currentText
if endCondition: break # end loop, if some endCondition is met
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.