[Sikuli-driver] [Question #271257]: I am not finding the right solution for my code

2015-09-09 Thread saryu
New question #271257 on Sikuli:
https://answers.launchpad.net/sikuli/+question/271257

I am a new learner of Sikuli tool. I have framed the below code to locate a 
particular image from the screen full of images. But the result is not as 
expected. While loop is not executed till my image is found. Kindly give your 
inputs for getting right behavior of code

#my code
openApp("C:\Program Files\Google\Chrome\Application\chrome.exe")
type("l", KEY_CTRL)
type("http://a-z-animals.com/animals/pictures/"; + Key.ENTER)
wait(2)
while not exists("1441797102403.png"): #bottom of the page
type(Key.PAGE_DOWN)
if exists("1441859075284.png"): #in order to locate an image
popup("Hurray!")
notFound = False
break
if notFound:
popup("OMG")

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #271257]: I am not finding the right solution for my code

2015-09-10 Thread Eugene Maslov
Question #271257 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271257

Status: Open => Answered

Eugene Maslov proposed the following answer:
A trick promoting web sites?

It works on my Chrome without problems on the page of this question , I
just unindented the last if.

notFound=True
while not exists("Takethetour-2.png"): #bottom of the page
type(Key.DOWN)
if exists("Createbugrep.png"): #in order to locate an image
popup("Hurray!")
notFound = False
break
if notFound:
popup("OMG")

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #271257]: I am not finding the right solution for my code

2015-09-10 Thread saryu
Question #271257 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271257

Status: Answered => Open

saryu is still having a problem:
No.. On Execution I am able to see only one page down printed even if
the Createbugrep.png (in your example) is present in the end of the
page. (4 page downs/iterations expected in the while loop). Please check
again.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #271257]: I am not finding the right solution for my code

2015-09-10 Thread Eugene Maslov
Question #271257 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271257

Eugene Maslov posted a new comment:
Really tried my code??? There are no page-downs in it. The output is 27
lines "[log] TYPE "#DOWN."", then "Hurray" box appears when "Create bug
report" link appears at the bottom.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #271257]: I am not finding the right solution for my code

2015-09-10 Thread saryu
Question #271257 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271257

saryu gave more information on the question:
Used PAGE_DOWN instead of DOWN. Unintended  the last if (as you suggested). I 
am expecting 4 pagedowns to happen to find my image. but only one is happening 
and the popup appears ("Hurray")
 Note: I am using Sikuli IDE 1.0.1 version

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #271257]: I am not finding the right solution for my code

2015-09-14 Thread Eugene Maslov
Question #271257 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271257

Status: Open => Answered

Eugene Maslov proposed the following answer:
Try setting Settings.MinSimilarity=0.99 or 1.0 at the beginning of your
script. Probably there are two similar animals on your page. I use
Sikuli 1.1.0 from sikulix.com , but the version unlikely affect in this
case.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #271257]: I am not finding the right solution for my code

2015-09-14 Thread Eugene Maslov
Question #271257 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271257

Eugene Maslov proposed the following answer:
Try also highlighting to see the details.
And wait(1) after page-down will help avoiding confusions if the browser 
scrolls the site smoothly and the image is captured during scrolling.

notFound=True
while not exists("PrivacyPolic.png"): #bottom of the page
type(Key.PAGE_DOWN)
wait(1)
target=exists("Albatross.png",0)
if target: #in order to locate an image
target.highlight(2)
popup("Hurray!")
notFound = False
break
if notFound:
popup("OMG")

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #271257]: I am not finding the right solution for my code

2015-09-14 Thread saryu
Question #271257 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271257

saryu confirmed that the question is solved:
Thanks Eugene Maslov, that solved my question.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #271257]: I am not finding the right solution for my code

2015-09-14 Thread saryu
Question #271257 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271257

Status: Answered => Solved

saryu confirmed that the question is solved:
Thank you Eugene. The command Settings.MinSimilarity=0.99 solved my
issue. Hurray!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp