After modifying the name of the screen capture is not used

Asked by can

I have modified the Screenshot filename of the Sikuli IDE, but it has not been used in the Sikuli IDE.
but the modified file has been generated in the module folder.

I use sikuli1.1.0 on the win7_64bit+jdk8...

Is there any way to change the Screenshot filename?

The following information will be printed when it is saved...

[info] IDE startup: 5.0 seconds

Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError
at java.util.regex.Pattern$CharProperty.match(Pattern.java:3775)
at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
at java.util.regex.Pattern$LazyLoop.match(Pattern.java:4847)
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
at java.util.regex.Pattern$CharProperty.match(Pattern.java:3777)
at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
at java.util.regex.Pattern$LazyLoop.match(Pattern.java:4847)
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
at java.util.regex.Pattern$BranchConn.match(Pattern.java:4568)
at java.util.regex.Pattern$CharProperty.match(Pattern.java:3777)
at java.util.regex.Pattern$Branch.match(Pattern.java:4604)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:46

... more

Question information

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

You have to use the Preview feature to modify the image name.

click on image thumbnail and use the first tab in the Preview dialog.

With 1.1.0 final you can do this:

write a line in the script as

myimage1 =

then use the capture button and the image will be named myimage1.png

Another option is in the preferences:
switch "Automatic Naming" to "off (manual input)" and with each capture you will get a popup allowing you to name the image

Revision history for this message
can (ting) said :
#2

I'm sorry for I don't describe the qestion clear.

Operation process is this:
1.switch "Automatic Naming" to "off (manual input)" use the first tab in preferences dialog.
2.the screenshot file named "a" when i capture the screenshot.

Afterwards, I want to change the screenshot filename.
Then I click on image thumbnail.
and modified the screenshot filename use the first tab in the Preview dialog.
but the IDE print more message and don't modify the screenshot filename

Revision history for this message
can (ting) said :
#3

there are new name file and old name file in the xxx.sikuli folder.

Revision history for this message
can (ting) said :
#4

Whether or not modify the saved thumbnail image name?

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

I have to check that.

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

ok, checked:
cannot reproduce this behavior with the final 1.1.0

After renaming (clicking Apply) you get the feedback "(changed)".
At this moment, the folder contains 2 image files with the same content but different names (old-name.png and new-name.png).
Depending on your settings in Preferences -> more options -> Options on Save -> delete not used images, the old-name.png will be deleted (or not) when you save the script, if there are no other references for this image file left in the script.

Revision history for this message
can (ting) said :
#7

i got it.
This option has not been turned on due to the entire project architecture.
Thank you very much for your answer.