Start another file when the first one is finished

Asked by charliedaps on 2018-11-29

Hello everyone,

I am under windows 7 and I created a file that contains 1500 lines.

It works perfectly but if I add lines, it does not work anymore.

So I have the idea to make another file that starts when the first has finished but I do not know how.

Thanks for your help.

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
masuo
Solved:
2018-11-30
Last query:
2018-11-30
Last reply:
2018-11-29
charliedaps (charliedaps) said : #2

Thank you very much for your link but I do not understand much about it. I am not a programmer;);)

When I create a file (finally a folder with the images and the files codes), this one is for example c:\auto\test1

I think I'll have 3 or 4 files like that. (c:\auto\test2, ......)

So I have to create another file that will start them one after the other but what are the lines of code.

Sorry but I do not understand what is in the help.

Thanks by advance for your help

Best masuo (masuo-ohara) said : #3

try this.
runScript("C:\auto\test1.sikuli")
runScript("C:\auto\test2.sikuli")
runScript("C:\auto\test3.sikuli")

charliedaps (charliedaps) said : #4

Thanks masuo, that solved my question.

Mike (maestro+++) said : #5

So you said if your program goes over 1500 lines 'it does not work any more'. What actually happens?

General question to everyone: is there a 1500 line limit somewhere in SikuliX?

charliedaps (charliedaps) said : #6

Hello,

I am not very good at this language and this program so I will not be very precise in my answer.

In fact, I do not have an error message but the coding does not start.

These are 160 line steps so it's a simple copy paste with just one or two changes and when I go beyond 1,500 lines, it does not start anymore.

Mike (maestro+++) said : #7

OK, thanks. I'll raise this as a new question as the forum doesn't date changes post 'solved' by the looks of it.

RaiMan (raimund-hocke) said : #8

@charlie
... yes there is a limit, but not in terms of lines but in KiloByte (KB): a script file in terms of characters cannot be larger than 64 KB.

I cannot judge, wether this limit is touched by your script.

in doubt divide your script in parts that can be run one after the other (solution as comment #3)

charliedaps (charliedaps) said : #9

@RaiMan

Hello,

Thank you for these explanations.

Effectively the solution to start the cripts one after the other is very simple.