← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #207708]: How do i loop import?

 

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

denywinarto gave more information on the question:
Ah, found out why,
i have to use reload(script)

from sikuli import *
import os
type("d",KEY_WIN)
wait("shortcut.png",FOREVER)
doubleClick("shortcut.png",FOREVER)
if exists("A.png",FOREVER):
    click("OK.png")
    doubleClick("close.png")
    for n in range(3):
        import tes
        reload(tes)

But now the script loop endlessly... Instead of 3 times,
So i guess the question now is, how do i loop it x times?

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