← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #261956]: Overwrite during image capture

 

Question #261956 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/261956

RaiMan proposed the following answer:
ok, understood.

A capture (no image file  found) and recapture option at
FindFailedResponse PROMPT will be available anyway in version 2 (might
be in a 1.1.x revision later this year) and additionally a response type
HANDLER specifying a handler, where you can do whatever you want before
resuming (like with observe).

... but sorry for now: no solution for your workflow currently.

I will add an option
Settings.OverwriteImages = false (as default)

So when available in one of the next nightly builds of 1.1.0, you might try it out:
somewhere at the beginning of a script session simply say 
Settings.OverwriteImages = true

and on recapture the images will be overwritten without notice (since
you know, what you are doing).

You might as well post a request bug and watch when it is tagged
FixCommitted/Critcal, which signals the availability in the nightly
build.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.