← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #680957]: Find an image gives error

 

Question #680957 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680957

    Status: Open => Answered

RaiMan proposed the following answer:
-- 1. when using the IDE for your scripting, then you should use the
capture button to create your images, which are then saved with the
script in a .sikuli folder (if you save the script ;-)

--2. windows file name strings in SikuliX IDE have to be written either

"c:\\folder\\subfolder\\image.png"
(hence the backslashes have to be doubled)

or as
r"c:\folder\subfolder\image.png"
(meaning it is a raw string - each character taken as is)

or as
"c:/folder/subfolder/image.png"
(works because inside we use Java)

You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.