How To Loop A File/Replay A File Once Finished

Asked by john

Hey guys, I searched all the other questions, but I found all the answers are little confusing.
Thanks alot for reading/answering this question by the way I really appreciate it ;)

I"m trying to run a sikuliscript again, after every time it finishes in windows xp.
The file is located in C:\Program Files\Sikuli X\myfile.skl

If anyone could answer how I can loop this once it's finished, indefinitely I would be very grateful.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

If you want to loop the whole script, you either can do it:

--1. inside the script.
faq 1437 should answer all your questions.

--2. or on the commandline
writing a batch file (.cmd) that just has a goto after the call to your .skl back to the line before the call.

Revision history for this message
john (camh321) said :
#2

Hey there Raiman, would you mind giving an example of a batch file?

Thanks alot
Appreciated

Revision history for this message
Best RaiMan (raimund-hocke) said :
#3

long, long time ago ;-)

but after short web reading - here you are:

put this in a file e.g. myloop.cmd

rem this loops forever
:start
rem her goes your run .skl command
goto start

doubleclicking the file should do what you want.

Revision history for this message
john (camh321) said :
#4

Thanks mate :) I am very very grateful.

Revision history for this message
john (camh321) said :
#5

Thanks RaiMan, that solved my question.