unable to edit the .py file

Asked by sikuliproject

I am new to Sikuli. I am wrote a sikuli script in Sikuli IDE saved it and ran it through command line successfully. But I want to add some more code to it now. When I try to open the .py file by double clicking it , it opens fine. When I try to edit it , it doesn't allow me to save changes. I am trying to put a simple click ("Snapshot") command in it. My question is am I doing something wrong? Also when I try to open .sikuli file it will open as blank untitled file in the Sikuli IDE. Please suggest.

Question information

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

I do not really understand, what you are doing, but this should work.

--1. open Sikuli, make a script and save it using the File menu. this creates a folder you-have-named-it.sikuli.

--2. double clicking the folder should open your script again in the Sikuli IDE. If this makes problems, use the Open from the File menu and select the .sikuli folder.

--3. Especially as a beginner, you should never have something to do with the files inside the folder, especially with the .py file (only the generated .html might be of interest, since it shows a nicely rendered version of the script with the image thumbnails - it is created, when the script is saved)

one more thing:
As a beginner: Why are you running the script from commandline? why do you not use the convenient run buttons in the IDE?

Revision history for this message
sikuliproject (plelesr1) said :
#2

Thank you. That helped. I was trying various things and found how to run it through the command line. Thats the only reason I was running it through command line.