sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #51344
Re: [Question #680137]: repeat([waitTime]) how is this syntax with a region onchange?
Question #680137 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680137
Status: Open => Answered
RaiMan proposed the following answer:
I do not make a start shot or something else.
I simply start the observation and wait for any change in the region.
According to your description, a new number starts with 4 seconds flashing.
The start of this flashing will lead to a change detection, call the handler, that instantly stops the observation and lets the script continue.
The rest should be clear.
I think the observe cycle should be clear with comment #22, adding too things:
- how often the loop is started again is controlled by the ObserveScanRate
- onChange: since changes are detected by comparing the previous shot with the current shot, a change will only be detected earliest in the second loop
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.