New question #402262 on Sikuli:
https://answers.launchpad.net/sikuli/+question/402262

I am trying to create  a loop that "loops" a random number of times between x 
and y

I tried the following -:

import random
random.seed()
t=random.randint(1, 5)

while True:
    
    for x in range(t):


### Loop ###################
        click("__CLICK-TO-CAPTURE__")
############################
Loop        


I can get things to work if for "x in range(5) " which will create a 5 x loops 
but I require a random number of loops.


One additional point is there a way of creating a wait for image  x OR y to 
appear 


-- 
You received this question notification because your team Sikuli Drivers
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