Re: [Sikuli-driver] [Question #654441]: multiple screenshot analysis in a script

2017-08-03 Thread arminius
Question #654441 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/654441 arminius posted a new comment: Thanks Manfred you are the man. This came extremely close "while True: if exists(Pattern("image seen as of monday").targetOffset(-16,-58)): print('found 1st image')

Re: [Sikuli-driver] [Question #654441]: multiple screenshot analysis in a script

2017-08-03 Thread arminius
Question #654441 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/654441 Status: Answered => Solved arminius confirmed that the question is solved: Thanks Manfred Hampl, that solved my question. -- You received this question notification because your team Sikuli Drivers is

Re: [Sikuli-driver] [Question #654441]: multiple screenshot analysis in a script

2017-08-02 Thread keith Fischer
Question #654441 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/654441 keith Fischer posted a new comment: Actually, all this could have been done with selenium and even on a headless browser and get all the screenshots you need all run in the background. Based on events

Re: [Sikuli-driver] [Question #654441]: multiple screenshot analysis in a script

2017-08-02 Thread dinev
Question #654441 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/654441 dinev proposed the following answer: I was with impression we are trying to solve tho ovoid using tons of images for one slightly different element. So my suggestions are in this direction. One unorthodox

Re: [Sikuli-driver] [Question #654441]: multiple screenshot analysis in a script

2017-08-02 Thread Manfred Hampl
Question #654441 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/654441 Manfred Hampl proposed the following answer: Oops, wrong, instead of "break" you have to use "continue" in case that no image was found to go back to the beginning of the loop. -- You received this

Re: [Sikuli-driver] [Question #654441]: multiple screenshot analysis in a script

2017-08-02 Thread Manfred Hampl
Question #654441 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/654441 Status: Open => Answered Manfred Hampl proposed the following answer: If you have limited number of images, you could use something like while True: if exists(Pattern("image seen as of

Re: [Sikuli-driver] [Question #654441]: multiple screenshot analysis in a script

2017-08-02 Thread arminius
Question #654441 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/654441 Status: Answered => Open arminius is still having a problem: Keith Fischer Thanks Keith, I wasn't aware that Selenium could work together, figured it was one or the other, I'll look into that, thanks.

Re: [Sikuli-driver] [Question #654441]: multiple screenshot analysis in a script

2017-08-02 Thread Manfred Hampl
Question #654441 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/654441 Status: Open => Answered Manfred Hampl proposed the following answer: It seems to me that your code snippet in comment #1 is nonsense. In the first if you have "break" in both the "true" and the "else"

Re: [Sikuli-driver] [Question #654441]: multiple screenshot analysis in a script

2017-08-02 Thread dinev
Question #654441 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/654441 dinev posted a new comment: arminius, Your loop is correct - it is only one loop. Seems like 2 images doesn't exists on the screen If there a way you to provide few images of the whole web page with the

Re: [Sikuli-driver] [Question #654441]: multiple screenshot analysis in a script

2017-08-01 Thread keith Fischer
Question #654441 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/654441 keith Fischer posted a new comment: If you see the target image but sikuli does not find it consider this: If not already identify if these images appear in a consistent region of the web page. Create the

Re: [Sikuli-driver] [Question #654441]: multiple screenshot analysis in a script

2017-08-01 Thread arminius
Question #654441 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/654441 arminius gave more information on the question: it occurs to me I'll probably be mocked for that abridged version of my code up top, was just trying to give an example of what I want it to do. here's the

[Sikuli-driver] [Question #654441]: multiple screenshot analysis in a script

2017-08-01 Thread arminius
New question #654441 on Sikuli: https://answers.launchpad.net/sikuli/+question/654441 I've been trying for months to screenshot an alarm on a stock webpage, but the background and foreground are so dyanimc that a screenshot I take get's it's match scaled down to below 30% and then so many