← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #206657]: Wait for image A or B or C forever, then take action accordingly

 

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

RaiMan proposed the following answer:
--- it works, but when i run it, seems like it wont stop running 
If the above snippet is still your code: it will run forever intentionally,because the loop does not contain any termination rule.
So you have to use shift-alt-c to stop it or kill the java running process.
BUT AGAIN: ALWAYS save your script, BEFORE running it again after having made any changes.

--- it doesnt save. skl files in my pc
Forget about .skl files (save as executable) - they are of no value for nearly anything - especially if you are a newbee to all this stuff. concentrate on saving your stuff normally after having made changes.
And NEVER touch a .sikuli folder outside the IDE!

---  i also get this bug after saving the project 
The mentioned bug applies to saving scripts INTO the root directory of a drive like D:
So do not do it. You should at least have one folder level like D:\mySikuli, where you save your scripts or have even additional folders (but at least one).

--- the script is never lost ...
... but there are some cases, where you cannot reopen it with the IDE.
In these cases, you always find your script text in the .py file contained in the .sikuli folder, which you can open with a normal editor, from where you can bring it back to a new IDE script using copy and paste. The contained images can be brought back to the new script using the <load image> button.

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