[1.1.0] Need IDE settings to overwrite captured images --- partly fixed 2015-06-24+
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Committed
|
Critical
|
RaiMan |
Bug Description
***************** current implementation and usage
Is implemented, but not yet added as a selectable option.
Currently one has 3 possibilities:
-- 1. a hack
When having the IDE open, just add an untitled/new tab, that only contains
Settings.
and run it once.
From now on until you close the IDE you will have overwrite-images active
This would have to be repeated after every IDE startup.
-- 2. options file - longterm solution
this is not yet documented.
as mentioned in the docs
http://
SikuliX 1.1.0+ now uses a data store area, that contains a folder (create it, if it does not exist)
SikulixStore
In this folder put a file named
SikulixOptions.txt
that contains this line
Settings.
This file is read on startup and interpreted according to the rules of a Java Preferences file.
-- 3. implicit image naming using imagename =
If you write into a scriptline only this:
imagename =
and then press capture button still having the cursor in that line, then after capture you will have
imagename = "imagename.png"
this option always overwrites the image without asking.
Depending on how you have setup your script and usually work with naming, this might be interesting for you, since it is an easy way to name an image along a naming concept and have variables for the images all in one step.
One more thing:
if an image name starts with an _ then it will never be deleted by the cleanup function on save.
This is for situations, where you store captured stuff or other image files in the bundle, that are not mentioned anywhere in the script text.
-------
Would like the option of a setting to overwrite images of the same name during the screen capture process.
Using Sikuli IDE 1.0.1 / Win 7 64 bit.
From an earlier thread with RaiMan:(https:/
I will add an option
Settings.
So when available in one of the next nightly builds of 1.1.0, you might try it out:
somewhere at the beginning of a script session simply say
Settings.
and on recapture the images will be overwritten without notice (since
you know, what you are doing).
description: | updated |
description: | updated |
summary: |
- [1.1.0] Need IDE settings to overwrite captured images + [1.1.0] Need IDE settings to overwrite captured images --- partly fixed + 2015-06-24+ |
Changed in sikuli: | |
importance: | High → Critical |
Very well done. Thanks.