After re-opening a Sikuli file part of my script naming switched to <filename.png>

Asked by Bob Hag

Hi There,

I was wondering how did this happen and how I can change it back to just having the name be displayed as the image.

Before I had
eg. click (actualimage)

When I reopened the file
eg. click("423423423.png")

questions
1) How did it switch all of the sudden after saving and re-opening file
2) Is there away to make it display the actual image again?

Thanks for your time and help.

Question information

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

When an image is displayed with its filename instead of the thumbnail, this usually means, that the image file cannot be found in the .sikuli folder when opening it in the IDE.

Have you manipulated the folder somehow outside of the IDE?

Revision history for this message
Bob Hag (bobhag) said :
#2

No I have not manipulated the folder. The files are there in the same folder and visible.

Revision history for this message
Bob Hag (bobhag) said :
#3

Also, adding new scripts with an actual image and saving the file after re-openning file are changed to filename.png instead of the image.

Adding new scripts with image.
eg. click (actualimage)

Save file.

When I reopened the file
eg. click("423423423.png")

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

Make sure, your path to your .sikuli folder does not contain any blanks, special characters or even unicode characters (only ASCII-characters, numbers, hyphen and underscore).

Revision history for this message
Bob Hag (bobhag) said :
#5

I don't think that's the problem. But, how do you fix or correct this issue. Once the images have been changed to names eg. click("423423423.png") back to eg. click (actualimage)

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

If your script is named like e.g. myscript.sikuli, the respective image must be found in this folder, when Sikuli IDE opens this script (either automatically at startup or with File->Open).

There is no other way, to get the thumbnails visible.

So if you are sure, that the respective images (e.g. 423423423.png) are in the script's folder, there is some reason (I do not know which), that prevents the IDE from finding the images at reopen.

Can you help with this problem?

Provide an answer of your own, or ask Bob Hag for more information if necessary.

To post a message you must log in.