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

2017-09-30 Thread masuo
Question #658779 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/658779

Status: Open => Answered

masuo proposed the following answer:
@DAVID #4 comment

Is there quotation marks?

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


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

2017-09-30 Thread masuo
Question #658779 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/658779

masuo posted a new comment:
@DAVID  #4 comment

Is there quotation marks?

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


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

2017-09-30 Thread DAVID MASTROIANNI
Question #658779 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/658779

Status: Answered => Open

DAVID MASTROIANNI is still having a problem:
runScript(F:\Sikuli X\SWFC_ALT_1.sikuli)
___
[error] script [ Untitled ] stopped with error in line 1 at column 11
[error] SyntaxError ( "no viable alternative at input ':'", )

I want to make scripts, separately at first, then combine them into one script 
later.

Right now I have script1, script 2, and script3 and I combine them into
script4 by copying and pasting the code from script1, then copy and
paste code from script2, then copy and paste code from script3.

My issue here is that scripts12&3 will be changing, but I don't want to
have to change script4 each time as well since it is just a combination
of scripts 1, 2, and 3.

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


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

2017-09-30 Thread masuo
Question #658779 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/658779

masuo posted a new comment:
Sorry, I made a mistake in the folder name.

Running scripts and snippets from within other scripts and run scripts one 
after the other
http://sikulix-2014.readthedocs.io/en/latest/scripting.html?highlight=runscript

runScript("C:\\script\\scipt1.sikuli")
runScript("C:\\script\\scipt2.sikuli")
runScript("C:\\script\\scipt3.sikuli")

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


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

2017-09-30 Thread masuo
Question #658779 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/658779

masuo proposed the following answer:
Running scripts and snippets from within other scripts and run scripts one 
after the other
http://sikulix-2014.readthedocs.io/en/latest/scripting.html?highlight=runscript

runScript("C:\\script\\sikuli.scipt1")
runScript("C:\\script\\sikuli.scipt2")
runScript("C:\\script\\sikuli.scipt3")

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


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

2017-09-29 Thread Roman Podolyan
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.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #658779]: Make script using other scripts

2017-09-29 Thread DAVID MASTROIANNI
New question #658779 on Sikuli:
https://answers.launchpad.net/sikuli/+question/658779

Let's say I have script1.sikuli, script2.sikuli, and script3. sikuli completed

How might I be able to run script1 then script 3 then script 1 then script 2 or 
any combination? example:

run sikuli.scipt1
run sikuli.scipt2
run sikuli.scipt3
run sikuli.scipt1
run sikuli.scipt2

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

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp