[Sikuli-driver] [Question #272260]: name of image passed to function

2015-10-09 Thread rblack
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)

Re: [Sikuli-driver] [Question #272260]: name of image passed to function

2015-10-09 Thread RaiMan
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

Re: [Sikuli-driver] [Question #272260]: name of image passed to function

2015-10-09 Thread rblack
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

Re: [Sikuli-driver] [Question #272260]: name of image passed to function

2015-10-10 Thread RaiMan
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

Re: [Sikuli-driver] [Question #272260]: name of image passed to function

2015-10-11 Thread rblack
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

Re: [Sikuli-driver] [Question #272260]: name of image passed to function

2015-10-12 Thread RaiMan
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

Re: [Sikuli-driver] [Question #272260]: name of image passed to function

2015-10-14 Thread rblack
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