New question #272260 on Sikuli:
https://answers.launchpad.net/sikuli/+question/272260
Hello,
how to get the name of an image passed to a function as an object ?
def WaitAndClick(image,time,doclick = 1):
try:
wait(image,time)
if doclick==1:
click(image)
Question #272260 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272260
Status: Open => Answered
RaiMan proposed the following answer:
if we are talking about the basic Sikuli usage, image is an image
filename as a string.
exit(image + " not found")
--
You received this q
Question #272260 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272260
Status: Answered => Open
rblack is still having a problem:
Thank you RaiMan for fast answer, but it doesn't work.
I send image to my functions (imported from separate sikuli file) like that:
http://post
Question #272260 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272260
Status: Open => Answered
RaiMan proposed the following answer:
Ok, if you want to do such more sophisticated things, you should be
aware, what is behind the image thumbnails in the IDE
- In the first ca
Question #272260 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272260
Status: Answered => Open
rblack is still having a problem:
Thank you RaiMan!
Yes, i want to make complex automated reports, when an image will be not found.
Info about Pattern object type helped!
The
Question #272260 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272260
Status: Open => Answered
RaiMan proposed the following answer:
rather easy to solve:
# image is either string or Pattern
imageName = image
if isinstance(image, Pattern):
imageName = image.getFilenam
Question #272260 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272260
Status: Answered => Solved
rblack confirmed that the question is solved:
thank you!
image name is different then image.getFilename() , which gets the full
path. Fortunately i can handle that ;)
--
You
7 matches
Mail list logo