sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28362
Re: [Question #254687]: Image Dictionary Help
Question #254687 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/254687
Status: Open => Needs information
RaiMan requested more information:
As far as I understand, you seem to have the following:
# image dictionary
# someName.sikuli
from sikuli import *
img1 = "someImage1.png"
# … and more of these
all the captures you make, are stored into this script with some naming
convention.
now you have a main script, where you want to use the images from
someName.sikuli
2 possibilities:
1. using the variable names
# content of main script
from someName import * # makes all variable names like img1 known in main
click(img1) # uses the image
2. using the filenames
# content of main script
import someName.sikuli # makes the image files in folder someName.sikuli available on the image path
click("someImage1.png") # image is found on image path and used
-- Questions:
- what version of Sikuli do you use?
- what exactly is your implementation (be more specific, paste code)?
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.