← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #177265]: code works once

 

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

RaiMan proposed the following answer:
be sure, noobs are one of my hobbies ;-)

--- repeat endless
(for some background read faq 1437)

your stuff:

select all lines in your script, that shall be repeated, and press tab.
this should insert an indent in front of these lines. this is our block
to be repeated. before the first line insert (without indent):

while True:

--- hotkey to terminate
easiest way: Sikuli's standard abort key: shift-alt-c

crash option: hide the app window, so that the images are no longer
found - script will crash with a FindFailed error.

professional option: implement a private hotkey (see docs, not really
for noobs ;-). makes only sense, if you want the script to process
further after being interrupted.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.