← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #231963]: Image randomly appear

 

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

    Status: Answered => Open

tsiang is still having a problem:
no, sorry for my bad English so make u misunderstand
what I mean is I still want my script running, so what action I must add for img8 and img9 because they appear sometimes, img8 between 10-15mins, img9 between 1.5-2hrs

btw atm I figured it out by making 3 script and running them all, but its hurt my cpu...(running 30-40%)
so is there any solution to merge these 3 script?

btw thx raiman for reupgrade my script and the reply:)

this is my complete script:
PS: img8 and 9 is not necessary again

1st script: (can u make it shorten/better if u dont mind:))
for m in range(600):
 click(wait("img1",100))
 click(wait("img2",300))
 click(wait("img3",300))
 click(wait("img4",300))
 click(exists("img5",300))
 click(exists("img6",300))
 while exists("img7",20):
     if exists("img7"):
         click(exists(Pattern("img8").targetOffset(109,8)))
         break
 click(exists("img9",60))
 click(exists("img10",20))
 click(exists("img5",300))
 click(exists("img6",300))
 while exists("img7",20):
     if exists("img7"):
         click(exists(Pattern("img8").targetOffset(109,8)))
         break
 click(exists("img9",60))
 click(exists("img10",20))
 click(exists("img5",300))
 click(exists("img6",300))
 while exists("img7",20):
     if exists("img7"):
         click(exists(Pattern("img8").targetOffset(109,8)))
         break
 click(exists("img9",60))
 click(exists("img10",20))
 click(exists("img5",300))
 click(exists("img6",300))
 while exists("img7",20):
     if exists("img7"):
         click(exists(Pattern("img8").targetOffset(109,8)))
         break
 click(exists("img9",60))
 click(exists("img10",20))
 click(exists("img5",300))
 click(exists("img6",300))
 while exists("img7",20):
     if exists("img7"):
         click(exists(Pattern("img8").targetOffset(109,8)))
         break
 click(exists("img9",60))
 click(exists("img10",20))
 click(exists("img5",300))
 click(exists("img6",300))
 while exists("img7",20):
     if exists("img7"):
         click(exists(Pattern("img8").targetOffset(109,8)))
         break
 click(exists("img9",60))
 click(exists("img10",20))
 click(exists("img5",300))
 click(exists("img6",300))
 while exists("img7",20):
     if exists("img7"):
         click(exists(Pattern("img8").targetOffset(109,8)))
         break
 click(exists("img9",60))
 click(exists("img10",20))
 click(exists("img5",300))
 click(exists("img6",300))
 while exists("img7",20):
     if exists("img7"):
         click(exists(Pattern("img8").targetOffset(109,8)))
         break
 click(exists("img9",60))
 click(exists("img10",20))
 click(exists("img5",300))
 click(exists("img6",300))
 while exists("img7",20):
     if exists("img7"):
         click(exists(Pattern("img8").targetOffset(109,8)))
         break
 click(exists("img9",60))
 click(exists("img10",20))
 click(exists("img5",300))
 click(exists("img6",300))
 while exists("img7",20):
     if exists("img7"):
         click(exists(Pattern("img8").targetOffset(109,8)))
         break
 click(exists("img9",60))
 click(exists("img10",20))
 click(exists("img5",300))
 click(exists("img6",300))
 while exists("img7",20):
     if exists("img7"):
         click(exists(Pattern("img8").targetOffset(109,8)))
         break
 click(exists("img9",60))
 click(exists("img10",20))
 click(exists("img5",300))
 click(exists("img6",300))
 click(wait("img11",100))
 doubleClick(wait("img12",30))
 sleep(2)
 doubleClick(wait("img12",10))
 sleep(2)
 doubleClick(wait("img12",10))
 sleep(1)
 click(wait("img13",10))
 click(wait("img5",300))
 click(wait("img13",300))
 sleep(1)
 click(wait("img13",300))
 sleep(1)
 click(exists("img14",10))

2nd script: (which is I mentioned sometimes appear between 10-15mins)

for m in range(600):
    while exists("img15",FOREVER):
        if exists("img16"):
            click("img16")
            sleep(1)
            click(wait("img17",5))
            sleep(4)
            click("img18")
            click("img5")
            break

3rd script: (which is I mentioned sometimes appear between 1.5-2hrs)

for m in range(600):
    while exists("img19",FOREVER):
        if exists("img19"):
            click("img19")
            click(exists("img20",170))
            click(exists("img1",20))
            click(exists("img21",100))
            click(exists("img5",100))
            break

is it possible to  merge them into 1 script?

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