← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #658779]: Make script using other scripts

 

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

    Status: Open => Answered

Roman Podolyan proposed the following answer:
1) Using command line ( http://sikulix-2014.readthedocs.io/en/latest/faq/010-command-line.html ) 
2) Defining scripts as Python functions, and then running a combination  

that is
=====
def script1():
    # Do something    

def script2():
    # Do something    

def script3():
    # Do something    

script1()
script2()
script3()
script2()
script1()

=====

For more info look for Python functions (
https://www.tutorialspoint.com/python/python_functions.htm -- here, for
instance)

That's for starters. If you need more advanced structure, you want to look into Python modules topic: 
https://www.tutorialspoint.com/python/python_modules.htm

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