← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #664865]: Observing multiple images with priority

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
This is only manageable, if you use ONE handler function, where both situations are checked and handled accordingly.
It might be necessary, to check the existence of the other image in the handler, to decide.

Additionally you need some global state, that remembers what has been
done so far, to decide what has to be done now.

This all only makes sense, if the situations come up asynchronously in parallel to some main workflow.
If this is not the case, it is easier to use if exists().

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