← Back to team overview

sikuli-driver team mailing list archive

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:
But I am sure, you will get at least a scripter, if you stay tuned with
Sikuli and such kind of non trivial problems ;-)

--1. we reset the loop 
to stepping 1 at a time:

for pnum in range(1, 200):

--2. the first type stays as it is

    type("%03d"%pnum)

--3. the second type becomes

    type(("%03d"%pnum)+"a")

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.