sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #11729
Re: [Question #203115]: How to write sikuli script in a particular scenario
Question #203115 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/203115
Status: Open => Answered
j proposed the following answer:
A very basic approach would be to pass the image-info as command line
parameter:
script.sikuli
import sys
imageNumber = sys.argv[1]
if (imageNumber == 1):
dynamicImage = imgX
else
dynamicImage = imgY
click(img1)
click(img2)
click(dynamicImage)
...
click(imgN)
You can run it like this: Sikuli-ide.bat -r script.sikuli --args 1 or
this Sikuli-ide.bat -r script.sikuli --args 2
However if there are multiple images that need to be exchanged, this
approach will eventually become cumbersome.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.