sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #40382
Re: [Question #402796]: When running a batch of 5 Sikuli scripts from the main.sikuli script, how do I get the remaining scripts to continue running if one of the scripts fail?
Question #402796 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/402796
Status: Open => Answered
masuo proposed the following answer:
I tried the following sample codes, and it worked.
-----------sample01.sikuli------------
# -*- coding:utf-8
from sikuli import *
def main():
find("image01.png").highlight(2)
main()
-----------sample02.sikuli------------
# -*- coding:utf-8
from sikuli import *
def main():
find("image02.png").highlight(2)
main()
-----------sample03.sikuli------------
runScript("C:\script\sample01.sikuli")
runScript("C:\script\sample02.sikuli")
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.