sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28611
[Question #255477]: Extreme beginner : to incremente a value within a loop
New question #255477 on Sikuli:
https://answers.launchpad.net/sikuli/+question/255477
Hello everyone,
I am an extreme beginner in everything related to scgriptin, and even to coding in general. I nonetheless need to automate a task. I explain my case : I am a french medical student, and some websites allow us to access very relevant documents to our studies (and unfortunately very expensive materials ... wich is a problem for us students !).
However , a partnership with my faculty allows us to access to these resources for "free", to check theses references online for some time, through an integrated Java player (we cannot save the pdf easily)
Therefore , I would like to automate the capture of the pages of a book ( for my personal use only) , incrementing a number to enter in a field for each loop.
I show you what I managed to do ( I guess it's very dirty and inelegant , but I spent some time in it :))
click ( " 1412708067193.png " )
waitVanish ( " 1412708828626.png " )
click ( " 1412708516502.png " )
waitVanish ( " 1412709264777.png " )
Type ( "7")
click ( " 1412708342515.png " )
exists (" 1412710018919.png " )
click ( " 1412708364613.png " )
This script works to save a page (here, page 7). I would still desire to automate a large number of loop ( about 300 pages for example) , and that each time a loop is completed the "type field" increases by 1.
For example, for the first loop , the script write "1" in the field, for the second "2" , etc. etc.
I apologize in advance for any nonsensical stuff in this post, but my computer training (and english skill) are that of a medical student : pretty lacunar...
Thank you very much !
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.