Skip to content
This repository has been archived by the owner on Mar 14, 2018. It is now read-only.

With setFindFailedResponse(SKIP) click(image) clicks on current mouse position if find fails #273

Open
daohieu61 opened this issue Jul 16, 2017 · 2 comments
Labels

Comments

@daohieu61
Copy link

daohieu61 commented Jul 16, 2017

I've got this code

setFindFailedResponse(SKIP)
setAutoWaitTimeout(0)
click(Pattern("1500201899077.png").exact())
click(Pattern("1500201721625.png").exact())
click(Pattern("1500201756506.png").exact())
click(Pattern("1500201805639.png").exact())
click(Pattern("1500201860634.png").exact())
click(Pattern("1500201928592.png").exact())
click(Pattern("1500201954826.png").exact())
click(Pattern("1500201981720.png").exact())
click(Pattern("1500202077848.png").exact())
click(Pattern("1500202095150.png").exact())
click(Pattern("1500202120899.png").exact())
click(Pattern("1500202247550.png").exact())
click(Pattern("1500202342562.png").exact())
click(Pattern("1500202388923.png").exact())
click(Pattern("1500226650717.png").exact())
click(Pattern("1500226677967.png").exact())
click(Pattern("1500227629998.png").exact())
click(Pattern("1500228480081.png").exact())
click(Pattern("1500228580764.png").exact())
click(Pattern("1500228622015.png").exact())
click(Pattern("1500230168095.png").exact())
click(Pattern("1500230421919.png").exact())

I want it to find any existing image and click right after it appeared immediately. But when an image is not found, it automatically does a mouse click in current mouse position, and that's kinda annoying.
And I want to find a way to index the image finding process other than finding each image existence one by one, then loop. Is it possible?

@RaiMan
Copy link
Owner

RaiMan commented Sep 14, 2017

workaround:
unwrap the click(Pattern) to a
if exists(Pattern): click()

@RaiMan RaiMan closed this as completed Sep 14, 2017
@RaiMan RaiMan changed the title setFindFailedResponse(SKIP) does click of none With setFindFailedResponse(SKIP) click(image) clicks on current mouse position if find fails Sep 14, 2017
@RaiMan RaiMan added the bug label Sep 14, 2017
@RaiMan
Copy link
Owner

RaiMan commented Sep 14, 2017

In fact this is a bug ;-)

@RaiMan RaiMan reopened this Sep 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants