sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34825
Re: [Question #271912]: Images lost in script
Question #271912 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271912
Status: Open => Answered
RaiMan proposed the following answer:
1. take care, that all the images are in a separate backup folder.
2. make a folder myscript.sikuli containing your script file named
myscript.py (you may choose what you want as myscript, but .sikuli and
.py must have the same name.
3. now COPY the images from the backup folder to the myscript.sikuli
folder
4. open the script in the IDE
5. images shown with their filename and not with their thumbnail where
not found in the folder. make your decision, how to deal with it.
6. repair what is needed with each image using Preview (rename,
similarity, target offset)
7. save the script and you are back.
Be aware: all images (files .png) that are not referenced in the script
with their filename (even in comments) are deleted at time of script
save from the .sikuli folder (this is why a backup folder in your case
makes sense until back again). Image filenames starting with a _
(underscore) are never deleted.
You might switch between thumbnail and plain text view using ctrl-T
(menu view).
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.