Re: [Sikuli-driver] [Question #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Status: Answered = Solved eduardobedoya confirmed that the question is solved: Thanks RaiMan, 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, also, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear (if it takes 2secs or longer to appear) or 2secs in total. I really would like to achieve this, cuz this wait is inside a function that I have to repeat several times. Is this kinda easy to achieve, or would take to much loops or variables so it may not be worth doing. Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, also, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear (if it takes 2secs or longer to appear) or 2secs in total. I really would like to achieve this, cuz this wait is inside a function that I have to repeat several times. Is this kinda easy to achieve, or it would take to much loops-variables to do it, so it may not be worth doing. Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
New question #266392 on Sikuli: https://answers.launchpad.net/sikuli/+question/266392 Is it possible to wait for an image 9secs OR at least wait for 2 secs in total I mean sometimes the image appears in 0secs, then I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time image takes to appear OR in best scenario only 2secs I say so cuz this is inside a function I have to repeat several times. Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, so, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear OR in best scenario only 2secs I say so cuz this is inside a function I have to repeat several times. Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, so, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear OR in best scenario only 2secs I say so cuz this is inside a function I have to repeat several times. Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, also, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear (if it takes 2secs or longer to appear) or 2secs in total. I really would like to achieve this cuz wait is inside a function that I have to repeat several times. Is this kinda easy to achieve? Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, also, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear provided (if it takes longer than 2secs) or 2secs in total. I say so cuz this is inside a function I have to repeat several times. Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, also, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear provided that the wait time is equal or longer than 2secs I say so cuz this is inside a function I have to repeat several times. Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, also, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear (if it takes 2secs or longer to appear) or 2secs in total. I say so cuz this is inside a function I have to repeat several times. Thanks Advanced. -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Status: Open = Answered RaiMan proposed the following answer: currently the only solution: min = 2.0 start = time.time() reg.wait(Img, 9) rest = min - time.time() - start if rest 0: wait(rest) but might be a good idea to have something like that: minWait(2.0) reg.wait(img, 9) and minWait() only effects the next search. another option would be, to have a wait() variant like that: wait(image, maxWait, minWait) I put it on the list for version 2 -- 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 #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
Question #266392 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266392 Description changed to: I mean sometimes the image appears in 0secs, then in that case I would like to wait for 2secs more, but if the image appears in 3secs, I would like to avoid waiting any longer, also, if image appears in 1sec, then I would like to wait for 1sec more Is this possible? Hope it is understandable Currently Im doing... wait(2) reg.wait(Img, 9) By doing this I have to wait 2secs + the time the image takes to appear But I would like to do something like... (reg.wait(Img,9)) or (wait(2)) By doing this I would only have to wait the time the image takes to appear (if it takes 2secs or longer to appear) or 2secs in total. I really would like to achieve this, cuz this wait is inside a function that I have to repeat several times. Is this kinda easy to achieve, or it would take to much resource usage, so it may not be worth doing. Thanks Advanced. -- 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