← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #691880]: Sikuli Script in Python loop

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
lets say, analyse.sikuli contains your script.

in analyse.sikuli you have to wrap your current script code into a
def():

def runAnalyse():
    #your current code indented

make a new .sikuli (runAnalyse.sikuli) in the same folder where you have
analyse.sikuli:

import analyse
while True: #the loop
   analyse.runAnalyse()

... this is the simplest solution and has to be killed to stop.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.