← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #293127]: Script to run every 5 minutes

 

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

Description changed to:
Im new to Sikuli and so so with python.  I created a script in Sikuli and working properly and called it Test.sikuli.  I want this script to run every 5 minutes?  I tried below and seems to not work.  Can you please help?
import time
def executeTest():
    #my code here
    time.sleep(360) # 360 sec = 5 minutes
while True:
    executeTest()
I get [error] script [Test]] stopped with error at line --unknown--  
The error is on the line where time.sleep(360)

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