Question #255477 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255477

Mark Weisler proposed the following answer:
Hello Alexandre et al,

I suggest that you scan this board for this very often asked questions and the 
faqs section
and/or learn some basic Python.

Some basic python loops...

for i in range(1, 5):
    print i
else:
    print 'The for loop is over'


and...

while True:
    s = raw_input('Enter something : ')
    if s == 'quit':
        break
    print 'Length of the string is', len(s)
print 'Done'

Maybe also sit with someone who has more experience programming in
python and get some help getting started.

On Oct 7, 2014, at 1:01 PM, Alexandre wrote:

> 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 an answer
> contact for Sikuli.
> 

-- 
Mark Weisler  
PGP Key ID 68E462B6
PGP Key fingerprint  87D5 A77B FC47 3CC3 DFF0  586D 23FF F8B4 68E4 62B6

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to