Re: [Sikuli-driver] [Question #255477]: Extreme beginner : to incremente a value within a loop
Question #255477 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255477 Alexandre confirmed that the question is solved: Thanks Eugene S, that solved my question. -- 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
Re: [Sikuli-driver] [Question #255477]: Extreme beginner : to incremente a value within a loop
Question #255477 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255477 Status: Answered = Solved Alexandre confirmed that the question is solved: Thank you, I was able to solve my problem using for x in range (x,y) [...] type(%d) %(x)) Where type(%d) %(x)) write the iteration. Thank you again for your precious help. -- 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
Re: [Sikuli-driver] [Question #255477]: Extreme beginner : to incremente a value within a loop
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
[Sikuli-driver] [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. ___ 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
Re: [Sikuli-driver] [Question #255477]: Extreme beginner : to incremente a value within a loop
Question #255477 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/255477 Status: Open = Answered Eugene S proposed the following answer: Hi, You should create a for loop. The basic usage will look like this: for iteration in range(number of pages - 1): #the iteration variable will increase with every iteration #below will print the current iteration value print iteration Eugene -- 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