[Sikuli-driver] [Question #680220]: Differene between targetOffset and find."direction" operations

2019-04-12 Thread Bharatendu SOUMIL
New question #680220 on Sikuli: https://answers.launchpad.net/sikuli/+question/680220 Hey guys, I was wondering if there is a particular difference between these two lines: click(find("1231.png").right(30)) click(Pattern("1231.png").targetOffset(30,3)) because the effect is basically the same in e

Re: [Sikuli-driver] [Question #680220]: Differene between targetOffset and find."direction" operations

2019-04-13 Thread RaiMan
Question #680220 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680220 Status: Open => Answered RaiMan proposed the following answer: Functionally no difference. --- find."direction" the direction is written in the code. If you want to use the same somewhere else you have

Re: [Sikuli-driver] [Question #680220]: Differene between targetOffset and find."direction" operations

2019-04-13 Thread Bharatendu SOUMIL
Question #680220 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680220 Bharatendu SOUMIL posted a new comment: cheers RaiMan for the answer...but couldn't we still do: pat= find("1231.png").right(30)..and then do anything we like with pat, for e.g.: click(pat) ? We are using

Re: [Sikuli-driver] [Question #680220]: Differene between targetOffset and find."direction" operations

2019-04-13 Thread RaiMan
Question #680220 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680220 RaiMan proposed the following answer: Yes, you are principally right, if the given image is in the same place as at time of assignment: - with my click(pat) the find op is reevaluated - with your version it

Re: [Sikuli-driver] [Question #680220]: Differene between targetOffset and find."direction" operations

2019-04-13 Thread Bharatendu SOUMIL
Question #680220 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680220 Bharatendu SOUMIL posted a new comment: Thanks for the prompt response. Sorry I am still a bit not 100% clear on this. Apologies for continuing this tiny doubt for so long. Just to be sure: Even if the image

Re: [Sikuli-driver] [Question #680220]: Differene between targetOffset and find."direction" operations

2019-04-13 Thread RaiMan
Question #680220 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680220 RaiMan proposed the following answer: no problem ;-) pat = find(img).right(30) will only be evaluated once in a scriptrun and then always be a the evaluated location pat = Pattern(img).targetOffset(30, 0)

Re: [Sikuli-driver] [Question #680220]: Differene between targetOffset and find."direction" operations

2019-04-13 Thread Bharatendu SOUMIL
Question #680220 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/680220 Status: Answered => Solved Bharatendu SOUMIL confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because your team Sikuli Drivers i